aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-02-07 09:37:33 -0800
committerAndre Arko <andre@arko.net>2013-02-07 09:37:33 -0800
commit85eeb29723f164dcf9ad0a3d9d56f5b93fdc6229 (patch)
tree9c2aa34af940638630803c873c00f366a60a8a4d /lib
parent98ca4975eaa5245b06916ebf0fd7f7863ab7e653 (diff)
downloadbundler-85eeb29723f164dcf9ad0a3d9d56f5b93fdc6229.tar.gz
create a SecurityError that isn't a build issue
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler.rb1
-rw-r--r--lib/bundler/installer.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index de04dffc..40742198 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -61,6 +61,7 @@ module Bundler
class ProductionError < BundlerError; status_code(16) ; end
class HTTPError < BundlerError; status_code(17) ; end
class RubyVersionMismatch < BundlerError; status_code(18) ; end
+ class SecurityError < BundlerError; status_code(19) ; end
WINDOWS = RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw)!
FREEBSD = RbConfig::CONFIG["host_os"] =~ /bsd/
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index a9606666..607e74e4 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -114,7 +114,7 @@ module Bundler
FileUtils.rm_rf(Bundler.tmp)
rescue Exception => e
# install hook failed
- raise e if e.is_a?(Bundler::InstallHookError)
+ raise e if e.is_a?(Bundler::InstallHookError) || e.is_a?(Bundler::SecurityError)
# other failure, likely a native extension build failure
Bundler.ui.info ""