Skip to content

Commit

Permalink
fix the error message so it is the same as the regex issue docker#1999
Browse files Browse the repository at this point in the history
  • Loading branch information
kencochrane committed Sep 25, 2013
1 parent 1363de0 commit 0f829bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func validateRepositoryName(repositoryName string) error {
}
validRepo := regexp.MustCompile(`^([a-z0-9-_.]+)$`)
if !validRepo.MatchString(name) {
return fmt.Errorf("Invalid repository name (%s), only [a-zA-Z0-9-_.] are allowed", name)
return fmt.Errorf("Invalid repository name (%s), only [a-z0-9-_.] are allowed", name)
}
return nil
}
Expand Down

0 comments on commit 0f829bf

Please sign in to comment.