Permalink
Browse files

actually rescue the Timeout::Error

  • Loading branch information...
1 parent 15b6c95 commit 9aef5f9a2fe9917ac93ccac6d269a61d4840b801 @timfel timfel committed Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/fetcher.rb
@@ -133,7 +133,7 @@ def fetch(uri, counter = 0)
begin
Bundler.ui.debug "Fetching from: #{uri}"
response = @@connection.request(uri)
- rescue SocketError, Timeout, Net::HTTP::Persistent::Error
+ rescue SocketError, Timeout::Error, Net::HTTP::Persistent::Error
raise Bundler::HTTPError, "Network error while fetching #{uri}"
end

0 comments on commit 9aef5f9

Please sign in to comment.