Add generic error handling

Just in case a factory reset happens to fail.
bug/bundler_fix
William Vu 2014-06-21 15:35:03 -05:00
parent 075eec39e1
commit 79bf80e6bf
No known key found for this signature in database
GPG Key ID: E761DCB4C1629024
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,8 @@ class Metasploit4 < Msf::Auxiliary
if res && res.code == 200
print_good('Factory reset performed')
elsif res
print_error("An error occurred: #{res.code} #{res.message}")
end
end