Skip to content

Commit 793a3db

Browse files
authored
Merge pull request #444 from staff0rd/nullcheck_onError
Log error on undefined stack
2 parents b681257 + 43c4ca2 commit 793a3db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function dbmigrate(plugins, isModule, options, callback) {
136136
function registerEvents() {
137137

138138
process.on('uncaughtException', function(err) {
139-
log.error(err.stack);
139+
log.error(err.stack || err);
140140
process.exit(1);
141141
});
142142

0 commit comments

Comments
 (0)