diff options
author | Colby Swandale <colby@taplaboratories.com> | 2018-01-19 13:35:38 +1100 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2018-01-19 13:35:38 +1100 |
commit | 724894a4cea4b3f13d9c6a626ed2fdaab88f7474 (patch) | |
tree | 9c1e6f46d772f2737310f12dde962bd5e335bd8b /lib/bundler/compact_index_client | |
parent | 26490663ad40e5a1d7f2bf4636c017933a72d272 (diff) | |
download | bundler-724894a4cea4b3f13d9c6a626ed2fdaab88f7474.tar.gz |
handle gzip corruption errors in the compact index clientcolby/client-index-gzip-error
Diffstat (limited to 'lib/bundler/compact_index_client')
-rw-r--r-- | lib/bundler/compact_index_client/updater.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/compact_index_client/updater.rb b/lib/bundler/compact_index_client/updater.rb index 91ca653e8d..950306fee5 100644 --- a/lib/bundler/compact_index_client/updater.rb +++ b/lib/bundler/compact_index_client/updater.rb @@ -83,6 +83,8 @@ module Bundler "Bundler does not have write access to create a temp directory " \ "within #{Dir.tmpdir}. Bundler must have write access to your " \ "systems temp directory to function properly. " + rescue Zlib::GzipFile::Error + raise Bundler::HTTPError end def etag_for(path) |