Update mongodb connection error message
This commit is contained in:
2
app.js
2
app.js
@ -33,7 +33,7 @@ var passportConf = require('./config/passport');
|
||||
|
||||
mongoose.connect(secrets.db);
|
||||
mongoose.connection.on('error', function() {
|
||||
console.log('← MongoDB Connection Error →');
|
||||
console.log('✗ MongoDB Connection Error. Please make sure MongoDB is running.'.red);
|
||||
});
|
||||
|
||||
var app = express();
|
||||
|
Reference in New Issue
Block a user