mirror of
https://github.com/lostisland/faraday.git
synced 2025-08-29 00:03:58 -04:00
Fixes rescue block for refused connections, just for Net::HTTP
This commit is contained in:
parent
87baca6cf5
commit
cef0152af8
@ -55,8 +55,8 @@ module Faraday
|
||||
:body => http_resp.body
|
||||
|
||||
@app.call env
|
||||
rescue Errno::ECONNREFUSED
|
||||
raise Error::ConnectionFailed.new(Errno::ECONNREFUSED)
|
||||
rescue Errno::ECONNREFUSED => e
|
||||
raise Error::ConnectionFailed.new(e)
|
||||
end
|
||||
|
||||
def net_http_class(env)
|
||||
|
Loading…
x
Reference in New Issue
Block a user