Make cleanup failure messages more clear

bug/bundler_fix
Jon Hart 2015-11-18 11:44:34 -08:00
parent 0e3508df30
commit e7307d1592
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 4 additions and 3 deletions

View File

@ -31,7 +31,8 @@ class Metasploit3 < Msf::Exploit::Remote
'License' => MSF_LICENSE, 'License' => MSF_LICENSE,
'Author' => 'Author' =>
[ [
'tom' # Discovery, Metasploit module 'tom', # Discovery, Metasploit module
'Jon Hart <jon_hart[at]rapid7.com>' # Metasploit module
], ],
'References' => 'References' =>
[ [
@ -138,7 +139,7 @@ class Metasploit3 < Msf::Exploit::Remote
end end
end end
end end
print_error("Error while cleaning up #{script_name}") unless (res = send_soap_request(delete_xml)) print_error("Error while cleaning up script #{script_name}") unless (res = send_soap_request(delete_xml))
res res
end end
@ -181,7 +182,7 @@ class Metasploit3 < Msf::Exploit::Remote
end end
end end
print_error("Error while cleaning up #{script_name}") unless (res = send_soap_request(delete_xml)) print_error("Error while cleaning up handler #{handler_name}") unless (res = send_soap_request(delete_xml))
res res
end end