Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Problem with the error handler on update error #20
I'm using this project for the first time. This are the steps to reproduce the error:
According to http://documentcloud.github.com/backbone/#Model-save, the error callback should get the model and the response.
NOTE: Maybe this is because couchdb, and response can't be returned, I'm not sure, I don't know this project or couchdb well enough to be sure.
Unfortunately there's no way to access the response itself since jquery.couch.js does not pass it to the error-callback. But I added a new object that will be passed to error-callbacks that accumulates at least some information on the request.
A simple example for an error callback for a non-existing model:
This would lead to the following console output:
Is this sufficient enough?