From eff8e321f6f9a13e9561535063c536236ccc6d6f Mon Sep 17 00:00:00 2001 From: sveisvei Date: Sun, 13 Nov 2016 20:43:29 +0100 Subject: [PATCH] fix option to migrator --- server-impl.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server-impl.js b/server-impl.js index ca3b790648..5676771da2 100644 --- a/server-impl.js +++ b/server-impl.js @@ -36,9 +36,10 @@ function start (opts) { throw new Error('You must either pass databaseUri option or set environemnt variable DATABASE_URL'); } - return migrator(options.databaseUri) + return migrator({ databaseUri: options.databaseUri }) + .catch(err => logger.error('failed to migrate db', err)) .then(() => createApp(options)) - .catch(err => logger.error('failed to migrate db', err)); + .catch(err => logger.error('failed creating app', err)); } process.on('uncaughtException', err => {