Skip to content
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

Error code #11

Open
naivefun opened this issue Jun 30, 2017 · 2 comments
Open

Error code #11

naivefun opened this issue Jun 30, 2017 · 2 comments

Comments

@naivefun
Copy link

naivefun commented Jun 30, 2017

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.

@erikolson186
Copy link
Owner

erikolson186 commented Jul 3, 2017

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

@naivefun
Copy link
Author

Yes I think following similar codes would be great. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants