Merge pull request #215 from rapid7/msfgui-bail-without-msgpack

Try to load msgpack first, if it's not there, bail
Tod Beardsley 2012-03-02 12:56:50 -08:00
commit cf18bcc99e
1 changed files with 6 additions and 0 deletions

6
msfgui
View File

@ -7,6 +7,12 @@
# $Revision$
#
begin
require 'msgpack'
rescue LoadError
raise LoadError, "Missing msgpack gem, try 'gem install msgpack' to use MSFGui"
end
msfbase = __FILE__
while File.symlink?(msfbase)
msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))