From 5b60fad467164326a776103e6a6ffc5a69b91a37 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Tue, 16 Jul 2013 22:42:09 +0200 Subject: [PATCH] Display the exception error backtrace preformatted --- lib/template.php | 3 +++ 1 file changed, 3 insertions(+) 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()) { -- 2.39.5