meteor-webix icon indicating copy to clipboard operation
meteor-webix copied to clipboard

Error callback for collection operations

Open anisart opened this issue 9 years ago • 0 comments

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

anisart avatar May 05 '15 20:05 anisart