diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-07-01 15:09:44 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-07-15 16:05:12 +0900 |
commit | 0c8d90b5269829d9209a409163832998d5d77af4 (patch) | |
tree | 8f705e72a88d4a3727a12714d99e7f2a82e5d310 /lib | |
parent | 1f7195421ec9f6f8cadf8f573a01b644b44ab0da (diff) | |
download | ruby-0c8d90b5269829d9209a409163832998d5d77af4.tar.gz |
[rubygems/rubygems] Unswallow `Gem::Package::FormatError`
This error happen in a CI run, and as it is currently, it doesn't give
any useful information about the underlying cause. Let's not swallow the
original error.
https://github.com/rubygems/rubygems/commit/8c17ba2f45
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index b6f9384657..5470eb7263 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -255,8 +255,6 @@ module Bundler require "rubygems/security" require_relative "psyched_yaml" gem_from_path(path, security_policies[policy]).spec - rescue Gem::Package::FormatError - raise GemspecError, "Could not read gem at #{path}. It may be corrupted." rescue Exception, Gem::Exception, Gem::Security::Exception => e # rubocop:disable Lint/RescueException if e.is_a?(Gem::Security::Exception) || e.message =~ /unknown trust policy|unsigned gem/i || |