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:
parent
48696c7d41
commit
cea963420c
@ -687,7 +687,7 @@ $tw.modules.execute = function(moduleName,moduleRoot) {
|
|||||||
moduleInfo.exports = moduleInfo.definition;
|
moduleInfo.exports = moduleInfo.definition;
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} 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
|
// Return the exports of the module
|
||||||
|
Loading…
Reference in New Issue
Block a user