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:
baude
2018-07-31 13:09:53 -05:00
committed by Atomic Bot
parent 13b1845214
commit 20155657ec

View File

@ -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
}