Skip to content

Commit

Permalink
Fix #325, fmt.Errorf call has more than one error-wrapping directive %w
Browse files Browse the repository at this point in the history
  • Loading branch information
haoyu234 committed Jul 31, 2023
1 parent e3ef17b commit a4f36ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acceptor/tcp_acceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func NewTCPAcceptor(addr string, certs ...string) *TCPAcceptor {
} else if ( len(certs) == 2 && certs[0] != "" && certs[1] != "") {
cert, err := tls.LoadX509KeyPair(certs[0], certs[1])
if err != nil {
panic(fmt.Errorf("%w: %w",constants.ErrInvalidCertificates,err))
panic(fmt.Errorf("%w: %v",constants.ErrInvalidCertificates,err))
}
certificates = append(certificates, cert)
}
Expand Down

0 comments on commit a4f36ce

Please sign in to comment.