diff options
author | Andre Arko <andre@arko.net> | 2010-06-18 16:02:56 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2010-06-18 16:02:56 -0700 |
commit | c9e25126dd8b8c9b08203d21625ffc3cf248674c (patch) | |
tree | 4b45dee28a5084f35bd625b3abf9119a8c60ad9d | |
parent | 4e26209902d0ee3ba635de74c411dd0ec0c7035d (diff) | |
download | bundler-c9e25126dd8b8c9b08203d21625ffc3cf248674c.tar.gz |
Exit 1 if something goes wrong with bundle exec
-rw-r--r-- | lib/bundler/cli.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 06c9acbce0..6a31710fde 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -188,9 +188,11 @@ module Bundler Kernel.exec *ARGV rescue Errno::EACCES Bundler.ui.error "bundler: not executable: #{ARGV.first}" + exit 1 rescue Errno::ENOENT Bundler.ui.error "bundler: command not found: #{ARGV.first}" Bundler.ui.warn "Install missing gem binaries with `bundle install`" + exit 1 end end |