summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodriguez <deivid.rodriguez@riseup.net>2021-10-20 21:01:13 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-10-25 20:48:51 +0900
commit57d990ddab2ea59cc183f7ba239784a614f42c0f (patch)
tree7967b7ee9a3195c140d7097e4d19659534f0a70c
parent7b821bc9b5c4505d4202536d6cbaa6df60c7e737 (diff)
[rubygems/rubygems] Raise original exception
https://github.com/rubygems/rubygems/commit/3c93b9fd21
-rw-r--r--lib/bundler/rubygems_integration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb
index 81050a6e58..70366c4d48 100644
--- a/lib/bundler/rubygems_integration.rb
+++ b/lib/bundler/rubygems_integration.rb
@@ -494,9 +494,9 @@ module Bundler
fetcher.headers = { "X-Gemfile-Source" => remote.original_uri.to_s } if remote.original_uri
string = fetcher.fetch_path(path)
Bundler.load_marshal(string)
- rescue Gem::RemoteFetcher::FetchError => e
+ rescue Gem::RemoteFetcher::FetchError
# it's okay for prerelease to fail
- raise e unless name == "prerelease_specs"
+ raise unless name == "prerelease_specs"
end
def fetch_all_remote_specs(remote)