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