Skip to content

Commit

Permalink
Set previous exception when rethrown from controller resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
danut007ro committed Feb 14, 2020
1 parent 7a6e3c0 commit ab06cd9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -85,7 +85,7 @@ public function getController(Request $request)
try {
$callable = $this->createController($controller);
} catch (\InvalidArgumentException $e) {
throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable. %s', $request->getPathInfo(), $e->getMessage()));
throw new \InvalidArgumentException(sprintf('The controller for URI "%s" is not callable. %s', $request->getPathInfo(), $e->getMessage()), 0, $e);
}

if (!\is_callable($callable)) {
Expand Down

0 comments on commit ab06cd9

Please sign in to comment.