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

Use Fog.warning

This commit is contained in:
Kristoffer Roupé 2015-11-25 21:40:09 +01:00
parent 6e989aa6a0
commit aa2fad1200

View file

@ -64,7 +64,8 @@ DATA
elsif self.region != 'us-east-1'
response.status = 409
msg = "Your region '#{self.region}' does not match the default region 'us-east-1'"
raise(Excon::Errors.status_error({:expects => "StatusCode: #{200} : Warning! #{msg}"}, response))
Fog.warning msg
raise(Excon::Errors.status_error({:expects => 201}, response))
end
response
end