Raise an ArgumentError vs RuntimeError for backwards compatibility
This commit is contained in:
parent
a762d871bf
commit
7516512650
|
@ -80,7 +80,7 @@ begin
|
|||
|
||||
# Raise an error if no selected versions are supported
|
||||
if versions.length == 0
|
||||
raise RuntimeError, 'The system OpenSSL does not support the request SSL/TLS version'
|
||||
raise ArgumentError, 'The system OpenSSL does not support the request SSL/TLS version'
|
||||
end
|
||||
|
||||
last_error = nil
|
||||
|
|
Loading…
Reference in New Issue