Skip to content

Commit ae061a6

Browse files
committed
handle throwable
1 parent 51dd615 commit ae061a6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Controller/ExceptionController.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ public function showAction(Request $request, $exception, DebugLoggerInterface $l
122122
}
123123

124124
$response = $viewHandler->handle($view);
125-
} catch (\Exception $e) {
125+
} catch (\Exception $handleException) {
126+
} catch (\Throwable $handleException) {
127+
}
128+
129+
if (isset($handleException)) {
126130
$message = 'An Exception was thrown while handling: ';
127131
$message .= $this->getExceptionMessage($exception);
128132
$response = $this->createPlainResponse($message, Codes::HTTP_INTERNAL_SERVER_ERROR, $exception->getHeaders());

0 commit comments

Comments
 (0)