From f962a5764267dc9528819f7c0dd09fc3bdc657db Mon Sep 17 00:00:00 2001 From: Pierre Brisorgueil Date: Thu, 21 Nov 2019 17:33:18 +0100 Subject: [PATCH] =?UTF-8?q?fix(lib):=20show=20error=20if=20db=20initializa?= =?UTF-8?q?tion=20failed=20=F0=9F=90=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/app.js b/lib/app.js index 818d26af9..c7188cf2f 100644 --- a/lib/app.js +++ b/lib/app.js @@ -72,7 +72,7 @@ const bootstrap = async () => { db = await startMongoose(); app = await startExpress(); } catch (e) { - throw new Error('unable to initialize Mongoose or ExpressJS'); + throw new Error(`unable to initialize Mongoose or ExpressJS : ${e}`); } return {