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:
commit
b52bedbd48
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue