aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/scripts/helpers.js
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2017-02-17 11:08:31 +0100
committerAndreas Gohr <andi@splitbrain.org>2017-02-17 11:08:51 +0100
commit7531aa81784e6c7ff828732e1636223a1086faf4 (patch)
tree8a3ec2ca8f85390d8c7064b84d4247e55940195f /lib/scripts/helpers.js
parent2f85bd15e82dfa7d910406ff880baf6964a51a85 (diff)
downloaddokuwiki-7531aa81784e6c7ff828732e1636223a1086faf4.tar.gz
dokuwiki-7531aa81784e6c7ff828732e1636223a1086faf4.zip
print stack trace on catched JS errors too
Diffstat (limited to 'lib/scripts/helpers.js')
-rw-r--r--lib/scripts/helpers.js3
1 files changed, 3 insertions, 0 deletions
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);
+ }
}
}