Display the exception error backtrace preformatted

remotes/origin/stable6
Bart Visscher 12 years ago
parent 971a3fd124
commit 5b60fad467
  1. 3
      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()) {

Loading…
Cancel
Save