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:
parent
a7eec9b1e9
commit
eb943d4e46
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue