MongoDB connection error printed out with a console.error() instead of console.log() with a red method to make control the text color
parent
41f6c28083
commit
7b0faee208
2
app.js
2
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.');
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue