From 91c1b077fa2e95ba313926c7b60309d396d16195 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Oliveira?= Date: Wed, 21 Apr 2021 17:26:48 +0100 Subject: [PATCH] fix: error handling --- migrations/1599523522436-migrate-config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migrations/1599523522436-migrate-config.js b/migrations/1599523522436-migrate-config.js index 7a5e800d..ec0bae3b 100644 --- a/migrations/1599523522436-migrate-config.js +++ b/migrations/1599523522436-migrate-config.js @@ -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) }) }