remove special case check for invalid options

bug/bundler_fix
Brent Cook 2017-05-27 00:05:58 -05:00
parent ec5a3ab088
commit b7620e13a3
1 changed files with 0 additions and 3 deletions

View File

@ -240,9 +240,6 @@ module ModuleCommandDispatcher
rescue ::RuntimeError => e rescue ::RuntimeError => e
# Some modules raise RuntimeError but we don't necessarily care about those when we run check() # Some modules raise RuntimeError but we don't necessarily care about those when we run check()
elog("#{e.message}\n#{e.backtrace.join("\n")}") elog("#{e.message}\n#{e.backtrace.join("\n")}")
rescue Msf::OptionValidateError => e
print_error("{peer} - Check failed: #{e.message}")
elog("#{e.message}\n#{e.backtrace.join("\n")}")
rescue ::Exception => e rescue ::Exception => e
print_error("Check failed: #{e.class} #{e}") print_error("Check failed: #{e.class} #{e}")
elog("#{e.message}\n#{e.backtrace.join("\n")}") elog("#{e.message}\n#{e.backtrace.join("\n")}")