Less repetitive error messages

unstable
Tod Beardsley 2011-11-15 18:17:25 -06:00
parent 26659d8b17
commit 5cdab2ef41
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ class Metasploit3 < Msf::Post
cmd_exec("sudo -s") cmd_exec("sudo -s")
end end
rescue rescue
print_error "SUDO: Passwordless sudo didn't work out." print_error "SUDO: Passwordless sudo failed."
end end
else else
begin begin
@ -110,7 +110,7 @@ class Metasploit3 < Msf::Post
cmd_exec("rm #{askpass_sh}") cmd_exec("rm #{askpass_sh}")
end end
rescue ::IOError, ::Timeout::Error rescue ::IOError, ::Timeout::Error
print_error "Sudo with a password didn't work out." print_error "Sudo with a password failed."
end end
end end
end end