Skip to content

Commit 2f86f91

Browse files
authored
Merge pull request db-migrate#500 from junchaozhang/master
print the reason in unhandledRejection evnet if reason.stack does not…
2 parents 14ffafd + 876f512 commit 2f86f91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function registerEvents() {
147147
});
148148

149149
process.on('unhandledRejection', function(reason) {
150-
log.error(reason.stack);
150+
log.error(reason.stack || reason);
151151
process.exit(1);
152152
});
153153
}

0 commit comments

Comments
 (0)