Display the exception error backtrace preformatted

This commit is contained in:
Bart Visscher 2013-07-16 22:42:09 +02:00
parent 971a3fd124
commit 5b60fad467

View file

@ -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()) {