Raise an ArgumentError vs RuntimeError for backwards compatibility

This commit is contained in:
HD Moore 2014-10-15 13:30:38 -05:00
parent a762d871bf
commit 7516512650
1 changed files with 1 additions and 1 deletions

View File

@ -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