aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-02-27 19:47:17 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2025-02-27 19:47:17 +0000
commitea81d27a628a4c4df304bc3465ee057eeed85f80 (patch)
treea00f8a6ba4d7b35c13e2ee00d68c0da7864de177 /templates
parent0896c2670d96dfe88c6a396ba4b333c547271a64 (diff)
allow file locations in displayed exceptions to be linked to your editor, fixes #5175
Closes #5175 Merge request studip/studip!3866
Diffstat (limited to 'templates')
-rw-r--r--templates/unhandled_exception.php5
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) ?>