summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2011-09-19 00:48:32 -0700
committerAndre Arko <andre@arko.net>2011-09-19 00:48:32 -0700
commitd02fa2740f75b088409d721e08b675a683f0f5e8 (patch)
tree17dcf280c554be75ef33fb46c920f67c4f9f38b1
parentb8a024c9e43f6808c2e87d2532583ed52dd81ca3 (diff)
downloadbundler-1.1.pre.9.tar.gz
don't rescue install hook failuresv1.1.pre.9
-rw-r--r--lib/bundler/installer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index 71260374d5..c8a9e4b2a2 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -79,6 +79,10 @@ module Bundler
generate_bundler_executable_stubs(spec) if Bundler.settings[:bin]
FileUtils.rm_rf(Bundler.tmp)
rescue Exception => e
+ # install hook failed
+ raise e if e.is_a?(Gem::InstallError)
+
+ # other failure, likely a native extension build failure
Bundler.ui.info ""
Bundler.ui.warn "#{e.class}: #{e.message}"
msg = "An error occured while installing #{spec.name} (#{spec.version}),"