diff --git a/lib/template.php b/lib/template.php index d48e3b3682..2b94fb6725 100644 --- a/lib/template.php +++ b/lib/template.php @@ -531,17 +531,24 @@ class OC_Template{ if ($exception->getCode()) { $error_msg = '['.$exception->getCode().'] '.$error_msg; } - $hint = $exception->getTraceAsString(); - if (!empty($hint)) { - $hint = '
'.$hint.''; - } - while (method_exists($exception,'previous') && $exception = $exception->previous()) { - $error_msg .= '
'.$hint.''; } - $error_msg .= $exception->getMessage(); - }; + while (method_exists($exception,'previous') && $exception = $exception->previous()) { + $error_msg .= '