From 4dce560e7250c4bca92fdcacc4e33ee3bdf4f9de Mon Sep 17 00:00:00 2001 From: Tod Beardsley Date: Fri, 2 Mar 2012 12:20:29 -0600 Subject: [PATCH] Try to load msgpack first, if it's not there, bail And tell the user how to fix. This has come up a couple times. --- msfgui | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/msfgui b/msfgui index d76d621efa..ae4d04571d 100755 --- a/msfgui +++ b/msfgui @@ -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))