Skip to content

Commit 135ac9d

Browse files
committed
Change index to catch all errors, not just exceptions.
1 parent df2bb72 commit 135ac9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
}
221221

222222
$response = new HtmlResponse($html, $status, $exception->getHeaders());
223-
} catch (\Exception $exception) {
223+
} catch (\Throwable $exception) {
224224
$html = "<h1>Oh-no! The developers messed up!</h1><p>{$exception->getMessage()}</p>";
225225

226226
if (getenv('ENVIRONMENT') === 'development') {

0 commit comments

Comments
 (0)