Skip to content

Commit 557fda7

Browse files
authored
Merge pull request #1483 from hackmdio/feat/mindmap
Support mindmap
2 parents 3e09c7a + e9cf043 commit 557fda7

File tree

8 files changed

+472
-69
lines changed

8 files changed

+472
-69
lines changed

app.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,18 @@ models.sequelize.sync().then(function () {
280280
} else {
281281
throw new Error('server still not ready after db synced')
282282
}
283+
}).catch(err => {
284+
logger.error('Can\'t sync database')
285+
logger.error(err.stack)
286+
logger.error('Process will exit now.')
287+
process.exit(1)
283288
})
284289

285290
// log uncaught exception
286291
process.on('uncaughtException', function (err) {
287292
logger.error('An uncaught exception has occured.')
288293
logger.error(err)
294+
console.error(err)
289295
logger.error('Process will exit now.')
290296
process.exit(1)
291297
})

0 commit comments

Comments
 (0)