summaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2020-04-22 15:29:47 -0700
committerJhon Honce <jhonce@redhat.com>2020-04-22 15:34:33 -0700
commitbe5605ac4f0a9765c11bbd52ef0a658d2439b372 (patch)
treefdf0f01b0971f98e86f7084b9ffc608eebd91774 /libpod/define
parentbf1e5b875f365cc42cfd2a88fbe7e577e05a49f7 (diff)
downloadpodman-be5605ac4f0a9765c11bbd52ef0a658d2439b372.tar.gz
podman-be5605ac4f0a9765c11bbd52ef0a658d2439b372.tar.bz2
podman-be5605ac4f0a9765c11bbd52ef0a658d2439b372.zip
V2 Restore rmi tests
* Introduced define.ErrImageInUse to assist in determining the exit code without resorting string searches. Signed-off-by: Jhon Honce <jhonce@redhat.com>
Diffstat (limited to 'libpod/define')
-rw-r--r--libpod/define/errors.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpod/define/errors.go b/libpod/define/errors.go
index 3ba343789..16df2a1cc 100644
--- a/libpod/define/errors.go
+++ b/libpod/define/errors.go
@@ -141,4 +141,7 @@ var (
// ErrConmonOutdated indicates the version of conmon found (whether via the configuration or $PATH)
// is out of date for the current podman version
ErrConmonOutdated = errors.New("outdated conmon version")
+
+ // ErrImageInUse indicates the requested operation failed because the image was in use
+ ErrImageInUse = errors.New("image is being used")
)