From 7531aa81784e6c7ff828732e1636223a1086faf4 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Fri, 17 Feb 2017 11:08:31 +0100 Subject: [PATCH] print stack trace on catched JS errors too --- lib/scripts/helpers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/scripts/helpers.js b/lib/scripts/helpers.js index 0b32e8781..99137c504 100644 --- a/lib/scripts/helpers.js +++ b/lib/scripts/helpers.js @@ -62,5 +62,8 @@ function logError(e, file) { 'If this is in a plugin try updating or disabling the plugin, ' + 'if this is in a template try updating the template or switching to the "dokuwiki" template.', e.name, e.message, file); + if(e.stack) { + console.error(e.stack); + } } } -- GitLab