Raynos/xhr — pull request #23 by naugtur (2014-05-29 11:08:35+00:00)
Title: Prevent error in error handling when responseType is changed

xhr allows setting `responseType` option, but when a call ends up in HTTP error, the error handler accesses `responseText` property. Some `responseType`s cause the browser to throw when `tesponseText` is accessed. This PR fixes the issue by ignoring the error and writing a default message instead. The actual response text could be accessed via xhr.body probably, could be done in the 'catch' section.

_I saw you like handling errors so I handled an error in your error handler so it can handle errors while it's handling errors_