From d55cb0f58981d52ed970156acd5f499659962b32 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 29 Nov 2017 12:13:37 -0500 Subject: Fix error in runtime_ctr Signed-off-by: Matthew Heon Closes: #85 Approved by: rhatdan --- libpod/runtime_ctr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf