Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
db-will committed Jan 6, 2025
1 parent 7f4316b commit 3b8119a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/go-tpc/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func registerMysqlTLSConfig() {
}
certificates = []tls.Certificate{cert}
} else if len(sslCert) > 0 || len(sslKey) > 0 {
panic(errors.New("incomplete key pair configuration"))
panic("incomplete key pair configuration")
}

// Create a certificate pool from CA
Expand All @@ -300,7 +300,7 @@ func registerMysqlTLSConfig() {

// Append the certificates from the CA
if !certPool.AppendCertsFromPEM(ca) {
panic(fmt.Errorf("failed to append CA certs"))
panic("failed to append CA certs")
}

tlsConfig := &tls.Config{
Expand Down

0 comments on commit 3b8119a

Please sign in to comment.