Skip to content

Commit f51dd2b

Browse files
committed
Use bundler/setup for more graceful bundler related failures
1 parent 7daedac commit f51dd2b

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)