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 .= '