mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
crypto/tls: make error prefix uniform.
Error strings in this package were all over the place: some were prefixed with “tls:”, some with “crypto/tls:” and some didn't have a prefix. This change makes everything use the prefix “tls:”. Change-Id: Ie8b073c897764b691140412ecd6613da8c4e33a2 Reviewed-on: https://go-review.googlesource.com/21893 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
8d8feb4d2f
commit
eede112492
7 changed files with 36 additions and 36 deletions
|
|
@ -516,7 +516,7 @@ func (c *Config) getCertificate(clientHello *ClientHelloInfo) (*Certificate, err
|
|||
}
|
||||
|
||||
if len(c.Certificates) == 0 {
|
||||
return nil, errors.New("crypto/tls: no certificates configured")
|
||||
return nil, errors.New("tls: no certificates configured")
|
||||
}
|
||||
|
||||
if len(c.Certificates) == 1 || c.NameToCertificate == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue