diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-08-01 09:14:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-01 09:14:53 -0400 |
commit | de460bf97891055fe34bf1540a5f29b45b6771a8 (patch) | |
tree | fa01c95055b0c110c5a2628d12c1d67f3dc882e7 /libpod/image | |
parent | af2a1327d18f8f0eb50ad9b0f99a64f917ab730e (diff) | |
parent | e3ced7217f8c60de7faf1ad7d741709d8a255e95 (diff) | |
download | podman-de460bf97891055fe34bf1540a5f29b45b6771a8.tar.gz podman-de460bf97891055fe34bf1540a5f29b45b6771a8.tar.bz2 podman-de460bf97891055fe34bf1540a5f29b45b6771a8.zip |
Merge pull request #7177 from mheon/there_can_be_only_one
Ensure libpod/define does not include libpod/image
Diffstat (limited to 'libpod/image')
-rw-r--r-- | libpod/image/errors.go | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libpod/image/errors.go b/libpod/image/errors.go index ddbf7be4b..3f58b1c6a 100644 --- a/libpod/image/errors.go +++ b/libpod/image/errors.go @@ -1,17 +1,16 @@ package image import ( - "errors" + "github.com/containers/podman/v2/libpod/define" ) -// Copied directly from libpod errors to avoid circular imports var ( // ErrNoSuchCtr indicates the requested container does not exist - ErrNoSuchCtr = errors.New("no such container") + ErrNoSuchCtr = define.ErrNoSuchCtr // ErrNoSuchPod indicates the requested pod does not exist - ErrNoSuchPod = errors.New("no such pod") + ErrNoSuchPod = define.ErrNoSuchPod // ErrNoSuchImage indicates the requested image does not exist - ErrNoSuchImage = errors.New("no such image") + ErrNoSuchImage = define.ErrNoSuchImage // ErrNoSuchTag indicates the requested image tag does not exist - ErrNoSuchTag = errors.New("no such tag") + ErrNoSuchTag = define.ErrNoSuchTag ) |