vnc add missing exception catch

linux throws a different exception than osx
when the vnc client fails to connect
this caused issues with the specs running. this now
catches that additional exception
bug/bundler_fix
David Maloney 2014-06-05 15:32:08 -05:00
parent 2522f1f332
commit c61b47063d
No known key found for this signature in database
GPG Key ID: DEDBA9DC3A913DB2
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ module Metasploit
status: :connection_error
)
end
rescue ::EOFError, Rex::AddressInUse, Rex::ConnectionError, Rex::ConnectionTimeout, ::Timeout::Error => e
rescue ::EOFError, Errno::ENOTCONN, Rex::AddressInUse, Rex::ConnectionError, Rex::ConnectionTimeout, ::Timeout::Error => e
result_options.merge!(
proof: e.message,
status: :connection_error