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 authored and fabpot committed Feb 15, 2020
1 parent 926e19c commit 87d51c1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -88,7 +88,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);
}

return $callable;
Expand Down

0 comments on commit 87d51c1

Please sign in to comment.