Skip to content

Commit f18ce47

Browse files
committed
Update to exit app when an uncaughtException occured.
1 parent 8e8a5e1 commit f18ce47

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,5 +473,8 @@ models.sequelize.sync().then(startListen);
473473

474474
// log uncaught exception
475475
process.on('uncaughtException', function (err) {
476+
logger.error('An uncaught exception has occured.');
476477
logger.error(err);
478+
logger.error('Process will exit now.');
479+
process.exit(1);
477480
});

0 commit comments

Comments
 (0)