From c26fa61ec9234e3b52181c6d6dc1204f6713329f Mon Sep 17 00:00:00 2001 From: Chuanying Du Date: Sun, 4 Oct 2020 18:17:37 -0700 Subject: [PATCH] Update repo normalize error message to include the name of the repo. Signed-off-by: Chuanying Du --- reference/normalize.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/reference/normalize.go b/reference/normalize.go index b3dfb7a6..944e2817 100644 --- a/reference/normalize.go +++ b/reference/normalize.go @@ -1,7 +1,6 @@ package reference import ( - "errors" "fmt" "strings" @@ -42,7 +41,7 @@ func ParseNormalizedNamed(s string) (Named, error) { remoteName = remainder } if strings.ToLower(remoteName) != remoteName { - return nil, errors.New("invalid reference format: repository name must be lowercase") + return nil, fmt.Errorf("invalid reference format: repository name (%s) must be lowercase", remoteName) } ref, err := Parse(domain + "/" + remainder)