Closed petems closed 10 years ago
Did you actually have to move the location of the call or was that just a product of your hacking?
And I'm sorry I didn't even notice the raise_status_errors
param. Doh! I'm thinking we may want to turn that on by default. Thoughts?
I did have to move the location of the call, otherwise it gets overwritten by the other middleware.
I actually added this code originally on the Digital Ocean API gem. The parse issue never occured because Digital Ocean returns JSON for 404, 401s etc. Another thing to ask Riot to implement methinks :+1:
Yeah, it might be better to turn the error handling on by default, and then only turn it off if explicitly set. Will do that now :smile:
Also added spec for error-handling option