fix misspelled RuntimeError

bug/bundler_fix
Brent Cook 2017-10-30 15:42:11 -05:00
parent e70ca74c15
commit f42b980cf0
2 changed files with 3 additions and 5 deletions

View File

@ -634,8 +634,7 @@ module Metasploit
if idx > 0
encryption_mode = resp[idx, 1].unpack("C")[0]
else
raise RunTimeError, "Unable to parse encryption req. "\
"from server during prelogin"
raise "Unable to parse encryption req during pre-login, this may not be a MSSQL server"
encryption_mode = ENCRYPT_NOT_SUP
end
@ -682,8 +681,7 @@ module Metasploit
if idx > 0
encryption_mode = resp[idx, 1].unpack("C")[0]
else
raise RuntimeError, "Unable to parse encryption "\
"req during pre-login"
raise "Unable to parse encryption req during pre-login, this may not be a MSSQL server"
end
end
encryption_mode

View File

@ -165,7 +165,7 @@ def nmap_add_ports
if nmap_validate_arg(port_arg)
self.nmap_args << port_arg
else
raise RunTimeError, "Argument is invalid"
raise "Argument is invalid"
end
end