Skip to content

Commit

Permalink
Send Exception also into NotFoundHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Hejna committed Nov 29, 2016
1 parent 6088c72 commit 3bc1348
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ protected function handleException(Exception $e, ServerRequestInterface $request
$params = [$e->getRequest(), $e->getResponse(), $e->getAllowedMethods()];
} elseif ($e instanceof NotFoundException) {
$handler = 'notFoundHandler';
$params = [$e->getRequest(), $e->getResponse()];
$params = [$e->getRequest(), $e->getResponse(), $e];
} elseif ($e instanceof SlimException) {
// This is a Stop exception and contains the response
return $e->getResponse();
Expand Down

0 comments on commit 3bc1348

Please sign in to comment.