Skip to content

Commit 7cd7acb

Browse files
committed
minor: adding namespace to SSLError
1 parent cb0b5e0 commit 7cd7acb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/util/ssl_socket.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def initialize(host, port, op_timeout=nil, connect_timeout=nil, opts={})
5151
@socket = OpenSSL::SSL::SSLSocket.new(@tcp_socket, @context)
5252
@socket.sync_close = true
5353
connect
54-
rescue SSLError
54+
rescue OpenSSL::SSL::SSLError
5555
raise ConnectionFailure, "SSL handshake failed. MongoDB may " +
5656
"not be configured with SSL support."
5757
end

0 commit comments

Comments
 (0)