Permalink
Browse files

trace fetch errors, don't rescue twice needlessly

  • Loading branch information...
1 parent 71e14bc commit 0e79a6428eac18e9cf59f9ebcd378a790684b9b4 @indirect indirect committed Mar 2, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/bundler/fetcher.rb
@@ -252,14 +252,13 @@ def fetch_dependency_remote_specs(gem_names)
def fetch_all_remote_specs
Bundler.rubygems.sources = ["#{@remote_uri}"]
Bundler.rubygems.fetch_all_remote_specs
- rescue Gem::RemoteFetcher::FetchError => e
+ rescue Gem::RemoteFetcher::FetchError, OpenSSL::SSL::SSLError => e
if e.message.match("certificate verify failed")
raise CertificateFailureError.new(@public_uri)
else
+ Bundler.ui.trace e
raise HTTPError, "Could not fetch specs from #{@public_uri}"
end
- rescue OpenSSL::SSL::SSLError
- raise CertificateFailureError.new(@public_uri)
end
def well_formed_dependency(name, *requirements)

0 comments on commit 0e79a64

Please sign in to comment.