Skip to content

Commit

Permalink
Merge pull request #1473 from fprochazka/1.7-php7-throwable
Browse files Browse the repository at this point in the history
handle throwable
  • Loading branch information
GuilhemN committed May 14, 2016
2 parents 51dd615 + ae061a6 commit d6dfe60
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Controller/ExceptionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ public function showAction(Request $request, $exception, DebugLoggerInterface $l
}

$response = $viewHandler->handle($view);
} catch (\Exception $e) {
} catch (\Exception $handleException) {
} catch (\Throwable $handleException) {
}

if (isset($handleException)) {
$message = 'An Exception was thrown while handling: ';
$message .= $this->getExceptionMessage($exception);
$response = $this->createPlainResponse($message, Codes::HTTP_INTERNAL_SERVER_ERROR, $exception->getHeaders());
Expand Down

0 comments on commit d6dfe60

Please sign in to comment.