Improve error handling under Node.js

Now we include the stack trace with the error message. Thanks to
@felixhayashi for the suggestion.
This commit is contained in:
Jermolene 2014-11-03 16:14:51 +00:00
parent 48696c7d41
commit cea963420c
1 changed files with 1 additions and 1 deletions

View File

@ -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