You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far as I can tell Mongoose doesn’t care about building custom error messages. I don’t want to write code for custom error messages if Mongoose doesn’t have a mechanism for building them.
I found this pull request where custom error messages were discussed: Automattic/mongoose#753. Unfortunately, it looks like that PR is dead.
That said, it should be reasonably simple to build your own mechanism for mapping Mongoose errors to error messages using the path and type fields or the error objects.
Hi, is there a way to change the error Message ?
Cheers Marc
The text was updated successfully, but these errors were encountered: