From cea963420ca2800b86989e29d42d06ccb7ea2a00 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 3 Nov 2014 16:14:51 +0000 Subject: [PATCH] Improve error handling under Node.js Now we include the stack trace with the error message. Thanks to @felixhayashi for the suggestion. --- boot/boot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index 7c144a4a5..81a67f5c2 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -687,7 +687,7 @@ $tw.modules.execute = function(moduleName,moduleRoot) { moduleInfo.exports = moduleInfo.definition; } } catch(e) { - $tw.utils.error("Error executing boot module " + name + ":\n" + e); + $tw.utils.error("Error executing boot module " + name + ":\n" + e.stack); } } // Return the exports of the module