diff options
author | Andre Arko <andre@arko.net> | 2013-05-22 14:49:45 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-05-22 14:49:45 -0700 |
commit | ae895a263cdad381de80d25eca2fef850013f878 (patch) | |
tree | 9b73c3322a07ac11b366f1f6669c96558d2c0c68 /lib/bundler/rubygems_integration.rb | |
parent | fb51355e33157ad51009110d4e00762686784ccb (diff) | |
download | bundler-ae895a263cdad381de80d25eca2fef850013f878.tar.gz |
clean up gem error printing
Diffstat (limited to 'lib/bundler/rubygems_integration.rb')
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index a30c74e665..5ae086d591 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -31,12 +31,11 @@ module Bundler end def configuration - begin - Gem.configuration - rescue Gem::SystemExitException => e - puts e - raise Gem::SystemExitException - end + Gem.configuration + rescue Gem::SystemExitException => e + Bundler.ui.error "#{e.class}: #{e.message}" + Bundler.ui.trace e + raise Gem::SystemExitException end def ruby_engine |