1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Let the original error happen

It will give more useful information.

https://github.com/rubygems/rubygems/commit/efcecb5af5
This commit is contained in:
David Rodríguez 2020-07-11 12:19:51 +02:00 committed by Hiroshi SHIBATA
parent b84b4e8bfa
commit 9ad9c2d9c3
Notes: git 2020-07-31 21:08:19 +09:00

View file

@ -77,12 +77,6 @@ class Gem::Request
end end
connection connection
rescue LoadError => e
raise unless (e.respond_to?(:path) && e.path == 'openssl') ||
e.message =~ / -- openssl$/
raise Gem::Exception.new(
'Unable to require openssl, install OpenSSL and rebuild Ruby (preferred) or use non-HTTPS sources')
end end
def self.verify_certificate(store_context) def self.verify_certificate(store_context)