We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Now the error comes with message only like this:
"Error" "Key already exists in the object store."
Is it possible to use message code as error name? Much easier to use switch or other expression to identify.
switch
The text was updated successfully, but these errors were encountered:
This has been an idea. Are you thinking of having the same error codes as MongoDB? This is the only list I can find of the error codes: https://github.com/bookmd/mongo-errors/blob/master/index.js
Sorry, something went wrong.
Yes I think following similar codes would be great. 👍
No branches or pull requests
Now the error comes with message only like this:
Is it possible to use message code as error name? Much easier to use
switch
or other expression to identify.The text was updated successfully, but these errors were encountered: