mirror of
https://github.com/status-im/consul.git
synced 2025-02-23 10:58:25 +00:00
docker: make sure to log the error when we fall through
This commit is contained in:
parent
51a18c2557
commit
a1b47d99c1
@ -164,7 +164,7 @@ func (c *DockerClient) StartExec(containerID, execID string) (*circbuf.Buffer, e
|
|||||||
case code == 409:
|
case code == 409:
|
||||||
return nil, fmt.Errorf("start exec failed since container %s is paused or stopped", containerID)
|
return nil, fmt.Errorf("start exec failed since container %s is paused or stopped", containerID)
|
||||||
default:
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user