From b718dea1c91b5a0d4a4320b47218dbd1b75bd291 Mon Sep 17 00:00:00 2001 From: allencloud Date: Tue, 27 Dec 2016 00:00:42 +0800 Subject: [PATCH] return more accurate error message when docker kill Signed-off-by: allencloud Upstream-commit: cf5734b2e16978b7ae224de566a7c21020c88a78 Component: engine --- components/engine/daemon/kill.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/daemon/kill.go b/components/engine/daemon/kill.go index 18d5bbb4e5..a91f756c3d 100644 --- a/components/engine/daemon/kill.go +++ b/components/engine/daemon/kill.go @@ -61,7 +61,7 @@ func (daemon *Daemon) killWithSignal(container *container.Container, sig int) er // We could unpause the container for them rather than returning this error if container.Paused { - return fmt.Errorf("Container %s is paused. Unpause the container before stopping", container.ID) + return fmt.Errorf("Container %s is paused. Unpause the container before stopping or killing", container.ID) } if !container.Running {