7009794: misleading text in SSLHandshakeException exception message

Update the warning message

Reviewed-by: weijun
This commit is contained in:
Xue-Lei Andrew Fan 2011-03-14 09:05:06 -07:00
parent c6c7267c54
commit 31942cda2c

View File

@ -377,8 +377,8 @@ final class ClientHandshaker extends Handshaker {
ProtocolVersion mesgVersion = mesg.protocolVersion;
if (!isNegotiable(mesgVersion)) {
throw new SSLHandshakeException(
"Server chose unsupported or disabled protocol: " +
mesgVersion);
"Server chose " + mesgVersion +
", but client does not support or disables " + mesgVersion);
}
handshakeHash.protocolDetermined(mesgVersion);