]> source.dussan.org Git - nextcloud-server.git/commitdiff
Display the exception error backtrace preformatted
authorBart Visscher <bartv@thisnet.nl>
Tue, 16 Jul 2013 20:42:09 +0000 (22:42 +0200)
committerBart Visscher <bartv@thisnet.nl>
Tue, 16 Jul 2013 20:42:09 +0000 (22:42 +0200)
lib/template.php

index a1808c0b3566d76ab2233d44a473f331ffd49553..9ad1a330d4fcef269c1b7d8516a3a3ffec120e3b 100644 (file)
@@ -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()) {