10000 Set previous exception when rethrown from controller resolver · symfony/symfony@ab06cd9 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab06cd9

Browse files
committed
Set previous exception when rethrown from controller resolver
1 parent 7a6e3c0 commit ab06cd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function getController(Request $request)
8585
try {
8686
$callable = $this->createController($controller);
8787
} catch (\InvalidArgumentException $e) {
88-
throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable. %s', $request->getPathInfo(), $e->getMessage()));
88+
throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable. %s', $request->getPathInfo(), $e->getMessage()), 0, $e);
8989
}
9090

9191
if (!\is_callable($callable)) {

0 commit comments

Comments
 (0)
0