diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2017-11-29 12:13:37 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-11-29 17:57:32 +0000 |
commit | d55cb0f58981d52ed970156acd5f499659962b32 (patch) | |
tree | d63fb8c5832d02cb80722cb689ad953a4b4d397b /libpod | |
parent | 6ba6b186a41ca7cb937bce6815cbb5e4a09235f8 (diff) | |
download | podman-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.go | 2 |
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 |