fix: error handling in migration

This commit is contained in:
José Oliveira 2021-05-13 19:24:32 +01:00 committed by Josh Harvey
parent 7273d4f31f
commit 02c831c13e

View file

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