From 9ad9c2d9c33d9a135c99dbd15595ff697318c5d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sat, 11 Jul 2020 12:19:51 +0200 Subject: [PATCH] [rubygems/rubygems] Let the original error happen It will give more useful information. https://github.com/rubygems/rubygems/commit/efcecb5af5 --- lib/rubygems/request.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/rubygems/request.rb b/lib/rubygems/request.rb index 18bd4eb564..d07c60d344 100644 --- a/lib/rubygems/request.rb +++ b/lib/rubygems/request.rb @@ -77,12 +77,6 @@ class Gem::Request end 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 def self.verify_certificate(store_context)