Update repo normalize error message to include the name of the repo.
Signed-off-by: Chuanying Du <cydu@google.com>master
							parent
							
								
									2800ab0224
								
							
						
					
					
						commit
						c26fa61ec9
					
				|  | @ -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) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue