mirror of
https://github.com/containers/podman.git
synced 2025-06-16 22:57:06 +08:00
clarify pull error message
when pulling, we can fail to find an image (i.e. it doesn't exist) or we can not have authority/access to pull it. the registries don't tell us one way or another so the error message needs to cover both. Resolves #1194 Signed-off-by: baude <bbaude@redhat.com> Closes: #1195 Approved by: rhatdan
This commit is contained in:
@ -272,7 +272,7 @@ func (ir *Runtime) doPullImage(ctx context.Context, sc *types.SystemContext, goa
|
||||
if goal.usedSearchRegistries && len(goal.searchedRegistries) == 0 {
|
||||
return nil, errors.Errorf("image name provided is a short name and no search registries are defined in %s.", registryPath)
|
||||
}
|
||||
return nil, errors.Errorf("unable to find image in the registries defined in %q", registryPath)
|
||||
return nil, errors.Errorf("unable to find image on registries defined in %s, or you do not have pull access", registryPath)
|
||||
}
|
||||
return images, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user