Skip to content

Commit

Permalink
fix(lib): show error if db initialization failed 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Nov 21, 2019
1 parent 9543900 commit f962a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f962a57

Please sign in to comment.