Skip to content

Commit c26fa61

Browse files
committed
Update repo normalize error message to include the name of the repo.
Signed-off-by: Chuanying Du <[email protected]>
1 parent 2800ab0 commit c26fa61

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

reference/normalize.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package reference
22

33
import (
4-
"errors"
54
"fmt"
65
"strings"
76

@@ -42,7 +41,7 @@ func ParseNormalizedNamed(s string) (Named, error) {
4241
remoteName = remainder
4342
}
4443
if strings.ToLower(remoteName) != remoteName {
45-
return nil, errors.New("invalid reference format: repository name must be lowercase")
44+
return nil, fmt.Errorf("invalid reference format: repository name (%s) must be lowercase", remoteName)
4645
}
4746

4847
ref, err := Parse(domain + "/" + remainder)

0 commit comments

Comments
 (0)