# File lib/bundler/cli.rb, line 430 def exec(*args) Bundler.definition.validate_ruby! Bundler.load.setup_environment begin # Run Kernel.exec(*args) rescue Errno::EACCES Bundler.ui.error "bundler: not executable: #{args.first}" exit 126 rescue Errno::ENOENT Bundler.ui.error "bundler: command not found: #{args.first}" Bundler.ui.warn "Install missing gem executables with `bundle install`" exit 127 rescue ArgumentError Bundler.ui.error "bundler: exec needs a command to run" exit 128 end end