Improve error handling under Node.js

Now we include the stack trace with the error message. Thanks to
@felixhayashi for the suggestion.
print-window-tiddler
Jermolene 2014-11-03 16:14:51 +00:00
rodzic 48696c7d41
commit cea963420c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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