We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c947b89 commit a84e480Copy full SHA for a84e480
lib/net/ldap/connection.rb
@@ -15,6 +15,8 @@ def initialize(server)
15
raise Net::LDAP::LdapError, "No such address or other socket error."
16
rescue Errno::ECONNREFUSED
17
raise Net::LDAP::LdapError, "Server #{server[:host]} refused connection on port #{server[:port]}."
18
+ rescue Errno::EHOSTUNREACH => error
19
+ raise Net::LDAP::LdapError, "Host #{server[:host]} was unreachable (#{error.message})"
20
end
21
22
if server[:encryption]
0 commit comments