Skip to content

Commit 7070f11

Browse files
committed
Add exception type to catch-all error message.
1 parent c0ed275 commit 7070f11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/index.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@
214214

215215
$response = new HtmlResponse($html, $status, $exception->getHeaders());
216216
} catch (\Throwable $exception) {
217-
$html = "<h1>Oh-no! The developers messed up!</h1><p>{$exception->getMessage()}</p>";
217+
$class = get_class($exception);
218+
$html = "<h1>Oh-no! The developers messed up!</h1><p>{$exception->getMessage()} ($class)</p>";
218219

219220
if (getenv('ENVIRONMENT') === 'development') {
220221
$html .=

0 commit comments

Comments
 (0)