We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e72bcfe commit 36e373eCopy full SHA for 36e373e
app.js
@@ -272,12 +272,18 @@ models.sequelize.sync().then(function () {
272
} else {
273
throw new Error('server still not ready after db synced')
274
}
275
+}).catch(err => {
276
+ logger.error('Can\'t sync database');
277
+ logger.error(err.stack)
278
+ logger.error('Process will exit now.')
279
+ process.exit(1)
280
})
281
282
// log uncaught exception
283
process.on('uncaughtException', function (err) {
284
logger.error('An uncaught exception has occured.')
285
logger.error(err)
286
+ console.error(err)
287
logger.error('Process will exit now.')
288
process.exit(1)
289
0 commit comments