fix: error handling

This commit is contained in:
José Oliveira 2021-04-21 17:26:48 +01:00 committed by Josh Harvey
parent 8403736026
commit a402d4244b

View file

@ -28,9 +28,10 @@ module.exports.up = function (next) {
}) })
.catch(err => { .catch(err => {
if (err.message === 'lamassu-server is not configured') { if (err.message === 'lamassu-server is not configured') {
next() return next()
} }
console.log(err.message) console.log(err.message)
return next(err)
}) })
} }