Added debug for mongo
This commit is contained in:
parent
76c79462be
commit
2ff0798632
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,8 @@ passportConfig(passport);
|
|||
mongoose.set('strictQuery', false);
|
||||
mongoose
|
||||
.connect(mongoDbUri, {useNewUrlParser: true, useUnifiedTopology: true})
|
||||
.catch(() => {
|
||||
.catch((err) => {
|
||||
console.log('Mongo err:', err);
|
||||
process.exit();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue