lib/mistral_client/client.rb in mistral_client-1.2.0 vs lib/mistral_client/client.rb in mistral_client-1.2.1
- old
+ new
@@ -68,10 +68,10 @@
def check_for_error(resp)
return if resp.code >= 200 && resp.code < 300
if resp.code == 404
raise MissingObjectError, JSON.parse(resp.body)['faultstring']
end
- raise MistralError,
+ raise MistralResponseError.new(resp),
"Could not perform the requested operation:\n#{resp.body}"
end
end
end