Only catch Rex::ArgumentParseError

Avoid catching all exceptions, that way we don't actually shut up
other possible errors that are actually bugs.
This commit is contained in:
sinn3r 2013-07-11 11:36:21 -05:00
parent 6f7152a3da
commit 62413df04f
1 changed files with 2 additions and 2 deletions

4
msfcli
View File

@ -143,8 +143,8 @@ mode = ARGV.pop || 'h'
# Import options
begin
exploit.datastore.import_options_from_s(ARGV.join('_|_'), '_|_')
rescue => e
print "[!] Error: #{e}\n\n"
rescue Rex::ArgumentParseError => e
puts "[!] Error: #{e.message}\n\n"
exit
end