diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rubygems.rb | 7 |
1 files changed, 6 insertions, 1 deletions
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 |
