diff --git a/libpod/oci_conmon_common.go b/libpod/oci_conmon_common.go index ab0c8aabe8..157cbe2598 100644 --- a/libpod/oci_conmon_common.go +++ b/libpod/oci_conmon_common.go @@ -376,7 +376,7 @@ func (r *ConmonOCIRuntime) KillContainer(ctr *Container, signal uint, all bool) logrus.Infof("Error updating status for container %s: %v", ctr.ID(), err2) } if ctr.ensureState(define.ContainerStateStopped, define.ContainerStateExited) { - return define.ErrCtrStateInvalid + return fmt.Errorf("%w: %s", define.ErrCtrStateInvalid, ctr.state.State) } return fmt.Errorf("sending signal to container %s: %w", ctr.ID(), err) }