save.error - Events - Author API

Author API Events


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.


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.
Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.