diff --git a/lib/template.php b/lib/template.php index a1808c0b3566d76ab2233d44a473f331ffd49553..9ad1a330d4fcef269c1b7d8516a3a3ffec120e3b 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 = '<pre>'.$hint.'</pre>'; + } while (method_exists($exception,'previous') && $exception = $exception->previous()) { $error_msg .= '<br/>Caused by: '; if ($exception->getCode()) {