MongoDB connection error printed out with a console.error() instead of console.log() with a red method to make control the text color

pull/2/head
Sahat Yalkabov 2014-02-03 07:36:55 -05:00
parent 41f6c28083
commit 7b0faee208
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -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.');
});