diff options
author | Homu <homu@barosl.com> | 2015-12-15 16:55:52 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2015-12-15 16:55:52 +0900 |
commit | 1ca7d4505becf5a7553280f892ef31f0e6933384 (patch) | |
tree | 9ce266f23459de1ba55e810b03864ebaac3fb88d | |
parent | 2f7b4c283eecee2184aebc4f425dcd9dd68a86ef (diff) | |
parent | 9a7a3ade8cff42ca0e73365071e49d1c317fda3e (diff) | |
download | bundler-1ca7d4505becf5a7553280f892ef31f0e6933384.tar.gz |
Auto merge of #4155 - RochesterinNYC:add-more-http-exceptions-to-not-retry-on, r=indirect
Add more exception classes not to retry on to the Fetcher
Addresses #4154
-rw-r--r-- | lib/bundler/fetcher.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb index 4b79a7d883..aaf4679501 100644 --- a/lib/bundler/fetcher.rb +++ b/lib/bundler/fetcher.rb @@ -52,7 +52,10 @@ module Bundler # Exceptions classes that should bypass retry attempts. If your password didn't work the # first time, it's not going to the third time. - AUTH_ERRORS = [AuthenticationRequiredError, BadAuthenticationError] + AUTH_ERRORS = [AuthenticationRequiredError, BadAuthenticationError, Net::HTTPBadGateway, + Net::HTTPBadRequest, Net::HTTPForbidden, Net::HTTPMethodNotAllowed, + Net::HTTPMovedPermanently, Net::HTTPNotImplemented, Net::HTTPNotFound, + Net::HTTPRequestEntityTooLarge, Net::HTTPNoContent] class << self attr_accessor :disable_endpoint, :api_timeout, :redirect_limit, :max_retries |