Permalink
Browse files

Merge pull request #1506 from timfel/master

Fix rescue clause
  • Loading branch information...
2 parents 6c3e0a9 + 9aef5f9 commit c076283858aa5df9ef87b9ea06ebab60b1d12927 Andre Arko committed Oct 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler/fetcher.rb
View
@@ -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 c076283

Please sign in to comment.