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 callback for collection operations #14

Open
anisart opened this issue May 5, 2015 · 0 comments
Open

Error callback for collection operations #14

anisart opened this issue May 5, 2015 · 0 comments

Comments

@anisart
Copy link

anisart commented May 5, 2015

I set unique field check for collection

Genres._ensureIndex({title: 1}, {unique: true});

and if I add document with same title to list I have an error in console

insert failed: MongoError: insertDocument :: caused by :: 11000 E11000 duplicate key error index: meteor.genres.$title_1  dup key: { : "New title" }

I want show alert message with error like a

webix.message("Document with same title is exist!");

but I don't know where paste this code.

Need add error callback to save section of meteor-data.js

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

1 participant