From 7b0faee2084bafca6c0c2ca742bd7efe6a52c927 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Mon, 3 Feb 2014 07:36:55 -0500 Subject: [PATCH] MongoDB connection error printed out with a console.error() instead of console.log() with a red method to make control the text color --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 229f85f9d7..473acdc578 100755 --- a/app.js +++ b/app.js @@ -40,7 +40,7 @@ var app = express(); mongoose.connect(secrets.db); mongoose.connection.on('error', function() { - console.log('✗ MongoDB Connection Error. Please make sure MongoDB is running.'.red); + console.error('✗ MongoDB Connection Error. Please make sure MongoDB is running.'); });