From: Bart Visscher Date: Tue, 16 Jul 2013 20:42:09 +0000 (+0200) Subject: Display the exception error backtrace preformatted X-Git-Tag: v6.0.0alpha2~430^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5b60fad467164326a776103e6a6ffc5a69b91a37;p=nextcloud-server.git Display the exception error backtrace preformatted --- diff --git a/lib/template.php b/lib/template.php index a1808c0b356..9ad1a330d4f 100644 --- a/lib/template.php +++ b/lib/template.php @@ -550,6 +550,9 @@ class OC_Template{ $error_msg = '['.$exception->getCode().'] '.$error_msg; } $hint = $exception->getTraceAsString(); + if (!empty($hint)) { + $hint = '
'.$hint.'
'; + } while (method_exists($exception,'previous') && $exception = $exception->previous()) { $error_msg .= '
Caused by: '; if ($exception->getCode()) {