mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Display the exception error backtrace preformatted
This commit is contained in:
parent
971a3fd124
commit
5b60fad467
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue