diff --git a/lib/scripts/helpers.js b/lib/scripts/helpers.js
index 0b32e87811215f693094f8bac8f89df0eee3a171..99137c50441fe8ad2fb0c756fd91a6e38bdcc1af 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);
+        }
     }
 }