summaryrefslogtreecommitdiff
path: root/lib/bundler/fetcher/compact_index.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-01-04 21:43:14 -0600
committerSamuel Giddins <segiddins@segiddins.me>2016-01-25 10:49:51 -0600
commit18a27b3ad92ee4b7d96bc3c27028b6752d682ec5 (patch)
tree0bf84fae5ea6bb75c6a4d886a937dd193a25ec1c /lib/bundler/fetcher/compact_index.rb
parent48de6e8857bed06dd69f0be4122943d6aa6830d6 (diff)
downloadbundler-18a27b3ad92ee4b7d96bc3c27028b6752d682ec5.tar.gz
[CompactIndexClient] Don't raise Bundler::HTTPError
Diffstat (limited to 'lib/bundler/fetcher/compact_index.rb')
-rw-r--r--lib/bundler/fetcher/compact_index.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/fetcher/compact_index.rb b/lib/bundler/fetcher/compact_index.rb
index 7381846b66..78178f601b 100644
--- a/lib/bundler/fetcher/compact_index.rb
+++ b/lib/bundler/fetcher/compact_index.rb
@@ -8,7 +8,7 @@ module Bundler
def specs(gem_names)
specs_for_names(gem_names)
- rescue NetworkDownError => e
+ rescue NetworkDownError, CompactIndexClient::Updater::MisMatchedChecksumError => e
raise HTTPError, e.message
rescue AuthenticationRequiredError
raise # We got a 401 from the server. Just fail.
@@ -47,7 +47,7 @@ module Bundler
def available?
# Read info file checksums out of /versions, so we can know if gems are up to date
fetch_uri.scheme != "file" && compact_index_client.update_and_parse_checksums!
- rescue NetworkDownError => e
+ rescue NetworkDownError, CompactIndexClient::Updater::MisMatchedChecksumError => e
raise HTTPError, e.message
rescue AuthenticationRequiredError
# We got a 401 from the server. Just fail.