fix: error handling

This commit is contained in:
José Oliveira 2021-04-21 17:26:48 +01:00 committed by Rafael Taranto
parent b1a2c20e87
commit 91c1b077fa

View file

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