aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/exception.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/templates/exception.php')
-rw-r--r--core/templates/exception.php15
1 files changed, 1 insertions, 14 deletions
diff --git a/core/templates/exception.php b/core/templates/exception.php
index ee35510b26f..be816bb34d3 100644
--- a/core/templates/exception.php
+++ b/core/templates/exception.php
@@ -4,20 +4,7 @@
style('core', ['styles', 'header', 'exception']);
-function print_exception(Throwable $e, \OCP\IL10N $l): void {
- print_unescaped('<pre>');
- p($e->getTraceAsString());
- print_unescaped('</pre>');
-
- if ($e->getPrevious() !== null) {
- print_unescaped('<br />');
- print_unescaped('<h4>');
- p($l->t('Previous'));
- print_unescaped('</h4>');
-
- print_exception($e->getPrevious(), $l);
- }
-}
+require_once __DIR__ . '/print_exception.php';
?>
<div class="guest-box wide">