Skip to content

Commit de8e5c6

Browse files
committed
Improve exception messages
1 parent b90398d commit de8e5c6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

crypto/src/crypto/tls/CertificateStatus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ protected static bool IsCorrectType(byte statusType, object response)
9595
case CertificateStatusType.ocsp:
9696
return response is OcspResponse;
9797
default:
98-
throw new ArgumentException("unsupported value", "statusType");
98+
throw new ArgumentException("unsupported CertificateStatusType", "statusType");
9999
}
100100
}
101101
}

crypto/src/crypto/tls/CertificateStatusRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected static bool IsCorrectType(byte statusType, object request)
8888
case CertificateStatusType.ocsp:
8989
return request is OcspStatusRequest;
9090
default:
91-
throw new ArgumentException("unsupported value", "statusType");
91+
throw new ArgumentException("unsupported CertificateStatusType", "statusType");
9292
}
9393
}
9494
}

crypto/src/crypto/tls/ServerName.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ protected static bool IsCorrectType(byte nameType, object name)
9898
case Tls.NameType.host_name:
9999
return name is string;
100100
default:
101-
throw new ArgumentException("unsupported value", "name");
101+
throw new ArgumentException("unsupported NameType", "nameType");
102102
}
103103
}
104104
}

0 commit comments

Comments
 (0)