1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #17726 from runcom/fix-errors-format

Fix errors format
This commit is contained in:
David Calavera 2015-11-05 13:30:57 -08:00
commit b52bedbd48
2 changed files with 2 additions and 2 deletions

View file

@ -1081,7 +1081,7 @@ func (daemon *Daemon) setNetworkNamespaceKey(containerID string, pid int) error
search := libnetwork.SandboxContainerWalker(&sandbox, containerID)
daemon.netController.WalkSandboxes(search)
if sandbox == nil {
return derr.ErrorCodeNoSandbox.WithArgs(containerID)
return derr.ErrorCodeNoSandbox.WithArgs(containerID, "no sandbox found")
}
return sandbox.SetKey(path)

View file

@ -190,7 +190,7 @@ func (m *containerMonitor) Start() error {
m.container.ExitCode = -1
m.resetContainer(false)
return derr.ErrorCodeCantStart.WithArgs(utils.GetErrorMessage(err))
return derr.ErrorCodeCantStart.WithArgs(m.container.ID, utils.GetErrorMessage(err))
}
logrus.Errorf("Error running container: %s", err)