Skip to content

Commit

Permalink
Merge pull request #444 from staff0rd/nullcheck_onError
Browse files Browse the repository at this point in the history
Log error on undefined stack
  • Loading branch information
wzrdtales committed Nov 21, 2016
2 parents b681257 + 43c4ca2 commit 793a3db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.js
Expand Up @@ -136,7 +136,7 @@ function dbmigrate(plugins, isModule, options, callback) {
function registerEvents() {

process.on('uncaughtException', function(err) {
log.error(err.stack);
log.error(err.stack || err);
process.exit(1);
});

Expand Down

0 comments on commit 793a3db

Please sign in to comment.