diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-16 22:42:09 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-16 22:42:09 +0200 |
commit | 5b60fad467164326a776103e6a6ffc5a69b91a37 (patch) | |
tree | 80b69b8fbdf8a4c1d9e147a60119cf2bd4516a48 /lib/template.php | |
parent | 971a3fd124785033e7ed7db1018512b838c5ec58 (diff) | |
download | nextcloud-server-5b60fad467164326a776103e6a6ffc5a69b91a37.tar.gz nextcloud-server-5b60fad467164326a776103e6a6ffc5a69b91a37.zip |
Display the exception error backtrace preformatted
Diffstat (limited to 'lib/template.php')
-rw-r--r-- | lib/template.php | 3 |
1 files changed, 3 insertions, 0 deletions
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 = '<pre>'.$hint.'</pre>'; + } while (method_exists($exception,'previous') && $exception = $exception->previous()) { $error_msg .= '<br/>Caused by: '; if ($exception->getCode()) { |