1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 19:47:20 +00:00

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

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