From 34e073c0ca4a7bb0c7e07df883babeaafb03b438 Mon Sep 17 00:00:00 2001 From: Daniel Niknam Date: Sun, 8 Aug 2021 19:40:05 +1000 Subject: [rubygems/rubygems] Reword the message For errors that could happened while loading `rubygems/defaults/operating_system` https://github.com/rubygems/rubygems/commit/6e1e2141f8 --- lib/rubygems.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/rubygems.rb b/lib/rubygems.rb index e750277dd3..9b563f21ee 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -1333,7 +1333,12 @@ begin 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." + msg = "#{e.message}\n" \ + "Loading the rubygems/defaults/operating_system.rb file caused an error. " \ + "This file is owned by your OS, not by rubygems upstream. " \ + "Please find out which OS package this file belongs to and follow the guidelines from your OS to report " \ + "the problem and ask for help." + raise e.class, msg end begin -- cgit v1.2.3