diff options
Diffstat (limited to 'lib/rubygems')
-rw-r--r-- | lib/rubygems/command_manager.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/config_file.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/command_manager.rb b/lib/rubygems/command_manager.rb index fdee064fed..54636bf996 100644 --- a/lib/rubygems/command_manager.rb +++ b/lib/rubygems/command_manager.rb @@ -136,7 +136,7 @@ class Gem::CommandManager def run(args, build_args=nil) process_args(args, build_args) rescue StandardError, Timeout::Error => ex - alert_error "While executing gem ... (#{ex.class})\n #{ex.to_s}" + alert_error "While executing gem ... (#{ex.class})\n #{ex}" ui.backtrace ex terminate_interaction(1) diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb index cf14017ea2..1f4afba0f4 100644 --- a/lib/rubygems/config_file.rb +++ b/lib/rubygems/config_file.rb @@ -337,7 +337,7 @@ if you believe they were disclosed to a third party. end return content rescue *YAMLErrors => e - warn "Failed to load #{filename}, #{e.to_s}" + warn "Failed to load #{filename}, #{e}" rescue Errno::EACCES warn "Failed to load #{filename} due to permissions problem." end |