-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mongoose global error event #7125
Comments
This is a great idea. We should add the ability to handle errors at the model level and the connection level. Right now the closest thing we have is a |
do we have a global way of getting all errors? mongoose.on('') ? |
+1 |
@sibelius not for all errors. You'd need to register an error handler on every model, |
Feature query
I was wondering is there's some way to get all errors in mongoose like some sort of global error event on mongoose or even at a collection level ?
node version: 8.11.3
mongoose version: 4.13.6
The text was updated successfully, but these errors were encountered: