mikehostetler / amplify

AmplifyJS
http://amplifyjs.com
GNU General Public License v2.0
1.45k stars 143 forks source link

null being passed to handleResponse on error instead of _xhr #111

Open djarekg opened 9 years ago

djarekg commented 9 years ago

when an error is encountered, a null value is being passed to the handleResponse method instead of the _xhr object.

error: function( _xhr, status ) { handleResponse( null, status ); },

jacobslusser commented 8 years ago

I have the same question about this. This prevents us from getting back useful error data from the response. Modern REST makes heavy use of status codes, particularly in the 4XX range, that this prevents us from seeing.

My guess is that this was information not considered useful when Amplify was first written, but that is not the case these days.

Can this get changed? I would like to get all the jQuery error arguments.