summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rubygems.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 17881e2e0e..e750277dd3 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -1331,6 +1331,9 @@ begin
require 'rubygems/defaults/operating_system'
rescue LoadError
+ # Ignored
+rescue Exception => e
+ raise e.class, "#{e.message}\nThis is not expected so please report this issue to your OS support and ask for help."
end
begin