reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

The error() function should be given sensible arguments

Open enyo opened this issue 13 years ago • 3 comments

Right now, the error() function just gets the XMLHttpRequest object (contrary to what the docs suggest).

It would be great if the first argument would be an error object containing the content and the parsed content if available (if the content-type was JSON it should already be parsed JSON).

enyo avatar May 20 '12 14:05 enyo

+1 to this, the error() function isn't properly implemented. The specified data type should be used to correctly parse the body of 4** responses at least.

daninthewoods avatar Nov 13 '14 14:11 daninthewoods

I just bumped into this problem.

iclanzan avatar Jan 22 '15 23:01 iclanzan

+1

Mgutjahr avatar Aug 13 '15 12:08 Mgutjahr