mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-22 01:36:29 -05:00
Update to exit app when an uncaughtException occured.
This commit is contained in:
parent
8e8a5e1ecb
commit
f18ce47a3d
1 changed files with 3 additions and 0 deletions
3
app.js
3
app.js
|
@ -473,5 +473,8 @@ models.sequelize.sync().then(startListen);
|
|||
|
||||
// log uncaught exception
|
||||
process.on('uncaughtException', function (err) {
|
||||
logger.error('An uncaught exception has occured.');
|
||||
logger.error(err);
|
||||
logger.error('Process will exit now.');
|
||||
process.exit(1);
|
||||
});
|
Loading…
Reference in a new issue