diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-10 10:18:33 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-10 10:35:08 +0100 |
commit | 979b291a36caabd28f21d2d4b10b431f5f8ebdd3 (patch) | |
tree | 3d28eba5b1f5f8f73d1ccb86eb2b82956d3c9c21 /lib/private/legacy/OC_Template.php | |
parent | 78e1f228933ca3b67a628deff532704d6c7caba8 (diff) | |
download | nextcloud-server-979b291a36caabd28f21d2d4b10b431f5f8ebdd3.tar.gz nextcloud-server-979b291a36caabd28f21d2d4b10b431f5f8ebdd3.zip |
Show the full trace of an exception
Because often we catch the exception at some point and then the trace is
misleading. What's really interesting is the trace of the *previous*
exception.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/legacy/OC_Template.php')
-rw-r--r-- | lib/private/legacy/OC_Template.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/legacy/OC_Template.php b/lib/private/legacy/OC_Template.php index c14a43ea430..2ddb55096ad 100644 --- a/lib/private/legacy/OC_Template.php +++ b/lib/private/legacy/OC_Template.php @@ -325,7 +325,7 @@ class OC_Template extends \OC\Template\Base { $content->assign('errorCode', $exception->getCode()); $content->assign('file', $exception->getFile()); $content->assign('line', $exception->getLine()); - $content->assign('trace', $exception->getTraceAsString()); + $content->assign('exception', $exception); $content->assign('debugMode', \OC::$server->getSystemConfig()->getValue('debug', false)); $content->assign('remoteAddr', $request->getRemoteAddress()); $content->assign('requestID', $request->getId()); |