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

Ability to get notUnique error from index not added by this package #5

Open
ghost opened this issue Jul 14, 2016 · 2 comments
Open

Comments

@ghost
Copy link

ghost commented Jul 14, 2016

To delete.

The question is logged here: aldeed/meteor-collection2-core#7

@aldeed
Copy link
Collaborator

aldeed commented Oct 31, 2016

I think this was because of the problem with the mongo errors that they don't tell you discreetly what field the error was for. So we do string parsing to figure out, but we can only do that reliably for indexes created by this package. So if you happened to create the same index already before this package tries to create it, then we can't name it properly so we can't parse it properly.

I'm not sure if more recent versions of Mongo might have added the property name to the error message. That would solve this.

@maxpdx
Copy link

maxpdx commented Jan 18, 2018

@aldeed, any updates?

@aldeed aldeed changed the title Raw error returned instead of collection2 Ability to get notUnique error from index not added by this package Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants