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

Only HTTPStatusError has request and response

Fixes NoMethodError:undefined method 'request' for #<Excon::Errors::SocketError:0x62540a41>
This commit is contained in:
Carlos Sanchez 2013-08-29 12:43:14 -07:00
parent 7bfaef6dcc
commit 1e18b71963

View file

@ -165,7 +165,7 @@ module Fog
end
response
rescue Excon::Errors::Error => e
rescue Excon::Errors::HTTPStatusError => e
raise_if_error!(e.request, e.response)
end