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/define/errors.go | |
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/define/errors.go')
-rw-r--r-- | libpod/define/errors.go | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/libpod/define/errors.go b/libpod/define/errors.go index 23d10f527..4a0df3983 100644 --- a/libpod/define/errors.go +++ b/libpod/define/errors.go @@ -2,23 +2,20 @@ package define import ( "errors" - - "github.com/containers/podman/v2/libpod/image" - "github.com/containers/podman/v2/utils" ) var ( // ErrNoSuchCtr indicates the requested container does not exist - ErrNoSuchCtr = image.ErrNoSuchCtr + ErrNoSuchCtr = errors.New("no such container") // ErrNoSuchPod indicates the requested pod does not exist - ErrNoSuchPod = image.ErrNoSuchPod + ErrNoSuchPod = errors.New("no such pod") // ErrNoSuchImage indicates the requested image does not exist - ErrNoSuchImage = image.ErrNoSuchImage + ErrNoSuchImage = errors.New("no such image") // ErrNoSuchTag indicates the requested image tag does not exist - ErrNoSuchTag = image.ErrNoSuchTag + ErrNoSuchTag = errors.New("no such tag") // ErrNoSuchVolume indicates the requested volume does not exist ErrNoSuchVolume = errors.New("no such volume") @@ -76,7 +73,7 @@ var ( // ErrDetach indicates that an attach session was manually detached by // the user. - ErrDetach = utils.ErrDetach + ErrDetach = errors.New("detached from container") // ErrWillDeadlock indicates that the requested operation will cause a // deadlock. This is usually caused by upgrade issues, and is resolved |