aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Damani <kumar.damani@mail.utoronto.ca>2019-02-18 23:55:13 +0000
committerKumar Damani <kumar.damani@mail.utoronto.ca>2019-02-18 23:55:13 +0000
commit58d54b74424e1213c1888f3c3925ab8578d092f3 (patch)
tree04b4cb8760a6e38c127e9ca01e65c1b68ee6a764
parent2f628cab394e05e6c7f61cbdd7aaa5364bd57e93 (diff)
added error help for mongo connection
-rw-r--r--web/routes/index.js2
1 files changed, 2 insertions, 0 deletions
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}`);
}