summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-07-25 15:39:44 -0700
committerAndre Arko <andre@arko.net>2015-07-25 15:49:44 -0700
commit1131091bbe0c300ccc69c2cec0ff6be398af57bf (patch)
tree32893bb7c8440a3d84ad2d7b70b0e46bbe51149d
parent5e0ee2d7bb9c4a21dcf7a6c356dd40829d1c3a24 (diff)
downloadbundler-1131091bbe0c300ccc69c2cec0ff6be398af57bf.tar.gz
catch EHOSTUNREACH, too
fixes #3737
-rw-r--r--lib/bundler/fetcher.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb
index 936f28331f..6f4b191eaa 100644
--- a/lib/bundler/fetcher.rb
+++ b/lib/bundler/fetcher.rb
@@ -230,8 +230,8 @@ module Bundler
end
HTTP_ERRORS = [
- Timeout::Error, EOFError, SocketError, Errno::ENETDOWN,
- Errno::EINVAL, Errno::ECONNRESET, Errno::ETIMEDOUT, Errno::EAGAIN,
+ Timeout::Error, EOFError, SocketError, Errno::EAGAIN, Errno::ECONNRESET,
+ Errno::EHOSTUNREACH, Errno::EINVAL, Errno::ENETDOWN, Errno::ETIMEDOUT,
Net::HTTPBadResponse, Net::HTTPHeaderSyntaxError, Net::ProtocolError,
Net::HTTP::Persistent::Error
]