diff options
Diffstat (limited to 'lib/bundler/cli.rb')
-rw-r--r-- | lib/bundler/cli.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 1563d90890..d8545899ba 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -415,6 +415,9 @@ module Bundler Bundler.ui.error "bundler: command not found: #{ARGV.first}" Bundler.ui.warn "Install missing gem executables with `bundle install`" exit 127 + rescue ArgumentError + Bundler.ui.error "bundle exec needs a command to run" + exit 128 end end |