Skip to content

Commit 4ecb892

Browse files
author
Tod Beardsley
committed
Land rapid7#4226, user friendly Bundler error message
Fixes rapid7#4222, thanks @jhart-r7!
2 parents d04441f + f51dd2b commit 4ecb892

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

config/boot.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@
2323
end
2424

2525
begin
26-
require 'bundler'
26+
require 'bundler/setup'
2727
rescue LoadError
2828
$stderr.puts "[*] Metasploit requires the Bundler gem to be installed"
2929
$stderr.puts " $ gem install bundler"
30-
exit(0)
30+
exit(1)
3131
end
3232

33-
Bundler.setup
34-
3533
lib_path = root.join('lib').to_path
3634

3735
unless $LOAD_PATH.include? lib_path

0 commit comments

Comments
 (0)