aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-09-30 11:33:19 +0000
committerGitHub <noreply@github.com>2020-09-30 11:33:19 +0000
commit08d036cbd4225a9802fb8dc7c4da7b53ded3896a (patch)
treeb38e8fa39f94589bfdaf90444d3dfe1dce4b41e8 /libpod
parent19f080f1af884c1e36f55dc81cd51b0ac91a868a (diff)
parent22474095abe39c14c902650b08002c0bc89e7e6a (diff)
downloadpodman-08d036cbd4225a9802fb8dc7c4da7b53ded3896a.tar.gz
podman-08d036cbd4225a9802fb8dc7c4da7b53ded3896a.tar.bz2
podman-08d036cbd4225a9802fb8dc7c4da7b53ded3896a.zip
Merge pull request #7825 from rhatdan/exitcode
Fix handling of remove of bogus volumes, networks and Pods
Diffstat (limited to 'libpod')
-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 b3f6483d1..627928ef7 100644
--- a/libpod/define/errors.go
+++ b/libpod/define/errors.go
@@ -162,6 +162,9 @@ var (
// in a pod. This cannot be done as the infra container has all the network information
ErrNetworkOnPodContainer = errors.New("network cannot be configured when it is shared with a pod")
+ // ErrNetworkInUse indicates the requested operation failed because the network was in use
+ ErrNetworkInUse = errors.New("network is being used")
+
// ErrStoreNotInitialized indicates that the container storage was never
// initialized.
ErrStoreNotInitialized = errors.New("the container storage was never initialized")