From 58d54b74424e1213c1888f3c3925ab8578d092f3 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Mon, 18 Feb 2019 16:55:13 -0700 Subject: added error help for mongo connection --- web/routes/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/routes/index.js b/web/routes/index.js index d0b3d7c..ffe1c21 100644 --- a/web/routes/index.js +++ b/web/routes/index.js @@ -20,6 +20,8 @@ if (env === 'development') { mongoose.connect(uri, { useNewUrlParser: true }, function (error) { if (error) { console.log(error); + console.log("App was not able to connect to the mongo server!"); + console.log("... double check that the mongo server is running locally"); } else { console.log(`connected to ${uri}`); } -- cgit v1.2.3