display network name when disconnecting network error

Signed-off-by: allencloud <allen.sun@daocloud.io>
Upstream-commit: f0844de8f00eef8fe42503986a87933516b11b46
Component: engine
This commit is contained in:
allencloud
2016-12-27 13:37:54 +08:00
parent 71e3564b45
commit a7d9e53a66
@@ -808,7 +808,7 @@ func (daemon *Daemon) disconnectFromNetwork(container *container.Container, n li
}
if ep == nil {
return fmt.Errorf("container %s is not connected to the network", container.ID)
return fmt.Errorf("container %s is not connected to network %s", container.ID, n.Name())
}
if err := ep.Leave(sbox); err != nil {