Skip to content

Commit

Permalink
use bundler.ui + wording changes for exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rwilcox committed Sep 6, 2011
1 parent a285468 commit 82ac6b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/bundler/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@ def run(options)
Bundler.ui.info ""
generate_bundler_executable_stubs(spec) if Bundler.settings[:bin]
FileUtils.rm_rf(Bundler.tmp)
rescue Exception
puts "Error: '#{$!.message}', when installing #{spec.name}"
rescue Exception => e
Bundler.ui.warn "#{e.class}: #{e.message}"
Bundler.ui.error "An error (#{e.message}) occured while installing #{spec.name} (#{spec.version})"
Bundler.ui.error "Bundler can not continue. Try manually installing the gem, to determine if this is a Bundler specfic issue or issue with the gem itself"
raise
end
end
Expand Down

0 comments on commit 82ac6b6

Please sign in to comment.