diff options
Diffstat (limited to 'templates/unhandled_exception.php')
| -rw-r--r-- | templates/unhandled_exception.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/unhandled_exception.php b/templates/unhandled_exception.php index b6f16c8..e61438b 100644 --- a/templates/unhandled_exception.php +++ b/templates/unhandled_exception.php @@ -1,4 +1,7 @@ <?php +/** + * @var Throwable $exception + */ $current_page = _('Fehler'); $title = _('Fehler! Bitte wenden Sie sich an Ihren Systemadministrator.'); @@ -6,7 +9,7 @@ $details = [htmlReady($exception->getMessage())]; if (Studip\ENV == 'development') { $title = "Houston, we've got a problem."; - $details = [display_exception($exception, true, true)]; + $details = [ExceptionDisplay::from($exception)->display(true, true)]; } ?> <?= MessageBox::exception($title, $details) ?> |
