Closed ashchristopher closed 13 years ago
Great catch. That should be raise AJAXError
instead. I think this is just a bug in the documentation, but I can also make it handle returning an AJAXError
.
Just fixed this in fa36381ccd09ea3aad7657fbf45ca910681f7b41 and 3c9bbb335c652115daa3e746e070c0b2343f329f.
When running through your example in your README, it returns AJAXError(404, 'Invalid user.'). When you actually return the AJAXError object, you get an _AJAXError() is not JSON serializable_ error.
Using this example code:
In my java script I just tested with: