H
H
hckn2018-09-11 13:38:50
Node.js
hckn, 2018-09-11 13:38:50

How to handle database connection error with express-session?

The situation when at the time of starting the database server is not working. In my application (mongoose), if there is no connection to the database, it just sends a notification, but the work is not interrupted. connect-mongodoes not use mongoose and is connected separately. It is not clear how to handle the error in this case?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question