dominikh / go-js-xhr

MIT License
19 stars 7 forks source link

Fix error handling #1

Closed dominikh closed 9 years ago

dominikh commented 9 years ago

The object passed to the "error" callback is not in fact an error object, it's a progress event. It is devoid of any information about the error, and so is the XHR object itself. We cannot provide accurate information about the error, so we need to return a generic error.