Author API Events
save:error
Fires after an Item has failed to save.
You would want to be notified about this event firing, because you might want to track the error message for debugging, for example.
Examples
authorApp.on('save:error', function () {
console.log('This code executes when an Item has failed to save.');
});
Callback arguments
-
itemJson object
JSON of the Item that has failed to save.
-
Error object
Information about the error.
Related articles
- The
save()
method, which saves the current Item being edited. - The
save
event, which fires before an Item is to be saved. - The
save:success
event, which fires when an Item has successfully saved.