From b1a5a6b64d678e8b9d387a432e3abee893f90631 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Thu, 26 Oct 2017 11:56:36 +0200 Subject: [PATCH] docker: make sure to log the error when we fall through --- agent/checks/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/checks/docker.go b/agent/checks/docker.go index 46ff4adf0..809a07252 100644 --- a/agent/checks/docker.go +++ b/agent/checks/docker.go @@ -164,7 +164,7 @@ func (c *DockerClient) StartExec(containerID, execID string) (*circbuf.Buffer, e case code == 409: return nil, fmt.Errorf("start exec failed since container %s is paused or stopped", containerID) default: - return nil, fmt.Errorf("start exec failed for container %s with status %d: %s", containerID, code, b) + return nil, fmt.Errorf("start exec failed for container %s with status %d: body: %s err: %s", containerID, code, b, err) } }