From 20155657ecf688568c4712a8a125ff95a5dd29a3 Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 31 Jul 2018 13:09:53 -0500 Subject: 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 Closes: #1195 Approved by: rhatdan --- libpod/image/pull.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpod/image') diff --git a/libpod/image/pull.go b/libpod/image/pull.go index ff978d563..e84fe44ec 100644 --- a/libpod/image/pull.go +++ b/libpod/image/pull.go @@ -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 } -- cgit v1.2.3-54-g00ecf