summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-07-31 13:09:53 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-08-02 19:53:50 +0000
commit20155657ecf688568c4712a8a125ff95a5dd29a3 (patch)
tree8bbfb6a2569de8f764502711b79e0a1243f54277 /libpod
parent13b1845214bcc5e37accd6c0cef524abb694c0c5 (diff)
downloadpodman-20155657ecf688568c4712a8a125ff95a5dd29a3.tar.gz
podman-20155657ecf688568c4712a8a125ff95a5dd29a3.tar.bz2
podman-20155657ecf688568c4712a8a125ff95a5dd29a3.zip
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
Diffstat (limited to 'libpod')
-rw-r--r--libpod/image/pull.go2
1 files changed, 1 insertions, 1 deletions
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
}