Skip to content

Commit

Permalink
Raise original exception
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Oct 21, 2021
1 parent 8bedae4 commit 3c93b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bundler/lib/bundler/rubygems_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -506,9 +506,9 @@ def fetch_specs(remote, name)
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)
Expand Down

0 comments on commit 3c93b9f

Please sign in to comment.