Skip to content
Snippets Groups Projects
Commit 5b60fad4 authored by Bart Visscher's avatar Bart Visscher
Browse files

Display the exception error backtrace preformatted

parent 971a3fd1
No related branches found
No related tags found
No related merge requests found
......@@ -550,6 +550,9 @@ class OC_Template{
$error_msg = '['.$exception->getCode().'] '.$error_msg;
}
$hint = $exception->getTraceAsString();
if (!empty($hint)) {
$hint = '<pre>'.$hint.'</pre>';
}
while (method_exists($exception,'previous') && $exception = $exception->previous()) {
$error_msg .= '<br/>Caused by: ';
if ($exception->getCode()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment