- Fix exception message not showing on raw exception page
$message = $explanation[$e->getCode()] ?? '';
}
- return ['$title' => $title, '$message' => $message, '$back' => DI::l10n()->t('Go back')];
+ $vars = ['$title' => $title, '$message' => $message, '$back' => DI::l10n()->t('Go back')];
+
+ if (is_site_admin()) {
+ $vars['$trace'] = $e->getTraceAsString();
+ }
+
+ return $vars;
}
/**
<img class="hare" src="images/friendica-404_svg_flexy-o-hare.png"/>
<h1>{{$title}}</h1>
<p>{{$message}}</p>
+{{if $trace}}
+ <pre>{{$trace nofilter}}</pre>
+{{/if}}
<p><button type="button" onclick="window.history.back()" class="btn btn-primary">{{$back}}</button></p>
</div>
</head>
<body>
<h1>{{$title}}</h1>
- <p>{{$description nofilter}}</p>
+ <p>{{$message nofilter}}</p>
+ {{if $trace}}
+ <pre>{{$trace nofilter}}</pre>
+ {{/if}}
</body>
</html>