mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fmt.Errorf instead of errors.New
This commit is contained in:
parent
4c174e0bfb
commit
283ebf3ff9
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ func ResolveRepositoryName(reposName string) (string, string, error) {
|
||||||
if len(nameParts) < 2 {
|
if len(nameParts) < 2 {
|
||||||
// There is a dot in repos name (and no registry address)
|
// There is a dot in repos name (and no registry address)
|
||||||
// Is it a Registry address without repos name?
|
// Is it a Registry address without repos name?
|
||||||
return "", "", errors.New("Invalid repository name (ex: \"registry.domain.tld/myrepos\")")
|
return "", "", fmt.Errorf("Invalid repository name (ex: \"registry.domain.tld/myrepos\")")
|
||||||
}
|
}
|
||||||
hostname := nameParts[0]
|
hostname := nameParts[0]
|
||||||
reposName = nameParts[1]
|
reposName = nameParts[1]
|
||||||
|
|
Loading…
Reference in a new issue