aboutsummaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-11-29 12:13:37 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2017-11-29 17:57:32 +0000
commitd55cb0f58981d52ed970156acd5f499659962b32 (patch)
treed63fb8c5832d02cb80722cb689ad953a4b4d397b /libpod
parent6ba6b186a41ca7cb937bce6815cbb5e4a09235f8 (diff)
downloadpodman-d55cb0f58981d52ed970156acd5f499659962b32.tar.gz
podman-d55cb0f58981d52ed970156acd5f499659962b32.tar.bz2
podman-d55cb0f58981d52ed970156acd5f499659962b32.zip
Fix error in runtime_ctr
Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #85 Approved by: rhatdan
Diffstat (limited to 'libpod')
-rw-r--r--libpod/runtime_ctr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index ca9b42575..594e35dc5 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -104,7 +104,7 @@ func (r *Runtime) removeContainer(c *Container, force bool) error {
}
if c.state.State == ContainerStatePaused {
- return errors.Wrapf("container %s is paused, cannot remove until unpaused", c.ID())
+ return errors.Wrapf(ErrCtrStateInvalid, "container %s is paused, cannot remove until unpaused", c.ID())
}
// Check that the container's in a good state to be removed