I’m trying to write in some error handling for the updateData() function. I found in the documentation that the method returns a jQuery deferred promise object.
I am able to get it to work for the deferred.done method when there’s no error:
However, it does not seem to work for the deferred.fail method when there is an error:
Am I doing something wrong, or is there a better way to implement error handling with the updateData method?
Intercepting the Visualforce.remoting.Util.error method did the trick. Thanks!