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
XHR requests should get JSON for fatal errors #6228
this is impossible to do as we do not standardize results from actions. If someone chooses to exit in an delete action for example catching this is impossible. Also fatal errors do not result in correct error codes to be caught by an ajax error handler.
See also #5134
https://github.com/Elgg/Elgg/blob/1.10/js/lib/ajax.js#L201 (limited to actions)