Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit 9acedb5

Browse files
Using template literals for mongodb error message (#298)
thx to @NyashaNziramasanga
1 parent dc0aeb2 commit 9acedb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ mongoose.Promise = bluebird;
3333
mongoose.connect(mongoUrl, { useNewUrlParser: true, useCreateIndex: true, useUnifiedTopology: true } ).then(
3434
() => { /** ready to use. The `mongoose.connect()` promise resolves to undefined. */ },
3535
).catch(err => {
36-
console.log("MongoDB connection error. Please make sure MongoDB is running. " + err);
36+
console.log(`MongoDB connection error. Please make sure MongoDB is running. ${err}`);
3737
// process.exit();
3838
});
3939

0 commit comments

Comments
 (0)