1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Google Cloud Compute now raises Errors rather than throwing them.

This commit is contained in:
jordangbull 2013-07-12 13:23:47 -07:00
parent a7eec9b1e9
commit eb943d4e46

View file

@ -129,7 +129,7 @@ module Fog
response.status = response.body["error"]["code"]
response.body["error"]["errors"].each do |error|
throw Fog::Errors::Error.new(error["message"])
raise Fog::Errors::Error.new(error["message"])
end
else
response.status = 200