Skip to content

Commit

Permalink
chore: log invalid key in error
Browse files Browse the repository at this point in the history
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
  • Loading branch information
aramase committed Jan 10, 2022
1 parent efed957 commit a596624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/secretutil/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func GetCertPart(data []byte, key string) ([]byte, error) {
if key == corev1.TLSCertKey {
return getCert(data)
}
return nil, fmt.Errorf("tls key is not supported. Only tls.key and tls.crt are supported")
return nil, fmt.Errorf("key '%s' is not supported. Only 'tls.key' and 'tls.crt' are supported", key)
}

// getCert returns the certificate part of a cert
Expand Down

0 comments on commit a596624

Please sign in to comment.