Skip to content

Commit 7fe1fc3

Browse files
deivid-rodriguezhsbt
authored andcommitted
[rubygems/rubygems] Make HTTP_ERRORS list look like FAIL_ERRORS list
ruby/rubygems@bfa6770e39
1 parent c3bfce5 commit 7fe1fc3

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

lib/bundler/fetcher.rb

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,21 @@ def initialize(remote_uri)
7373
end
7474

7575
HTTP_ERRORS = [
76-
Gem::Timeout::Error, EOFError, SocketError, Errno::ENETDOWN, Errno::ENETUNREACH,
77-
Errno::EINVAL, Errno::ECONNRESET, Errno::ETIMEDOUT, Errno::EAGAIN,
78-
Gem::Net::HTTPBadResponse, Gem::Net::HTTPHeaderSyntaxError, Gem::Net::ProtocolError,
79-
Gem::Net::HTTP::Persistent::Error, Zlib::BufError, Errno::EHOSTUNREACH
76+
Gem::Timeout::Error,
77+
EOFError,
78+
SocketError,
79+
Errno::ENETDOWN,
80+
Errno::ENETUNREACH,
81+
Errno::EINVAL,
82+
Errno::ECONNRESET,
83+
Errno::ETIMEDOUT,
84+
Errno::EAGAIN,
85+
Gem::Net::HTTPBadResponse,
86+
Gem::Net::HTTPHeaderSyntaxError,
87+
Gem::Net::ProtocolError,
88+
Gem::Net::HTTP::Persistent::Error,
89+
Zlib::BufError,
90+
Errno::EHOSTUNREACH,
8091
].freeze
8192

8293
# Exceptions classes that should bypass retry attempts. If your password didn't work the

0 commit comments

Comments
 (0)