summaryrefslogtreecommitdiff
path: root/lib/bundler/installer.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2012-03-10 20:14:54 -0800
committerAndre Arko <andre@arko.net>2012-03-10 20:14:54 -0800
commit1f2cd74eefbe4c5b5677b78e50375d3d2a46eb15 (patch)
treec753cd53dd2643868335a466f0638a411a539ae3 /lib/bundler/installer.rb
parentabdc6374bd18488d0732a61c21fe028d9cc93e85 (diff)
downloadbundler-1f2cd74eefbe4c5b5677b78e50375d3d2a46eb15.tar.gz
raising Gem::InstallError is the worst possible thing
This code meant that _any_ gem install failure resulted in a message requesting the user to report this "bug" to the Bundler issue tracker. That is very, very not cool, and I had already fixed this issue once before the hook pull request regressed it. :(
Diffstat (limited to 'lib/bundler/installer.rb')
-rw-r--r--lib/bundler/installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index 8fd690202c..262ea0d032 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -83,7 +83,7 @@ module Bundler
FileUtils.rm_rf(Bundler.tmp)
rescue Exception => e
# install hook failed
- raise e if e.is_a?(Gem::InstallError)
+ raise e if e.is_a?(Bundler::InstallHookError)
# other failure, likely a native extension build failure
Bundler.ui.info ""