print stack trace on catched JS errors too

This commit is contained in:
Andreas Gohr 2017-02-17 11:08:31 +01:00
parent 2f85bd15e8
commit 7531aa8178
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
}
}