Add generic error handling
Just in case a factory reset happens to fail.bug/bundler_fix
parent
075eec39e1
commit
79bf80e6bf
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue