We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ed2f97 commit b855a16Copy full SHA for b855a16
src/crypto/x509/parser.go
@@ -964,7 +964,7 @@ func parseCertificate(der []byte) (*Certificate, error) {
964
}
965
oidStr := ext.Id.String()
966
if seenExts[oidStr] {
967
- return nil, errors.New("x509: certificate contains duplicate extension %s", oidStr)
+ return nil, fmt.Errorf("x509: certificate contains duplicate extension with OID %q", oidStr)
968
969
seenExts[oidStr] = true
970
cert.Extensions = append(cert.Extensions, ext)
0 commit comments