Skip to content

Commit 02ec7d9

Browse files
author
Matthew Fisher
committed
fix(errors): clarify error on invalid name
1 parent 50747d7 commit 02ec7d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var (
6161
// ErrDuplicateKey is returned when adding a key that already exists.
6262
ErrDuplicateKey = errors.New(duplicateKeyMsg)
6363
// ErrInvalidName is returned when a name is invalid or missing.
64-
ErrInvalidName = errors.New(invalidNameMsg)
64+
ErrInvalidName = errors.New(fmt.Sprintf("Name %s", strings.ToLower(invalidNameMsg)))
6565
// ErrInvalidCertificate is returned when a certififate is missing or invalid
6666
ErrInvalidCertificate = errors.New(invalidCertMsg)
6767
// ErrPodNotFound is returned when a pod type is not Found

0 commit comments

Comments
 (0)