Skip to content

Commit 114ec8b

Browse files
committed
Avoid e abbreviation -> error.
1 parent 546dec9 commit 114ec8b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/async/http/faraday/adapter.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,12 @@ def perform_request(env)
203203
end
204204

205205
return @app.call(env)
206-
rescue Errno::ETIMEDOUT, Async::TimeoutError => e
207-
raise ::Faraday::TimeoutError, e
208-
rescue OpenSSL::SSL::SSLError => e
209-
raise ::Faraday::SSLError, e
210-
rescue *CONNECTION_EXCEPTIONS => e
211-
raise ::Faraday::ConnectionFailed, e
206+
rescue Errno::ETIMEDOUT, Async::TimeoutError => error
207+
raise ::Faraday::TimeoutError, error
208+
rescue OpenSSL::SSL::SSLError => error
209+
raise ::Faraday::SSLError, error
210+
rescue *CONNECTION_EXCEPTIONS => error
211+
raise ::Faraday::ConnectionFailed, error
212212
end
213213

214214
def with_client(env)

0 commit comments

Comments
 (0)