Remove redundant error message
Currently some commands including `kill`, `pause`, `restart`, `rm`, `rmi`, `stop`, `unpause`, `udpate`, `wait` will print a lot of error message on client side, with a lot of redundant messages, this commit is trying to remove the unuseful and redundant information for user. Signed-off-by: Zhang Wei <zhangwei555@huawei.com> Upstream-commit: 894266c1bbdfeb53bf278f3cb762945bac69e592 Component: engine
This commit is contained in:
@ -13,7 +13,7 @@ func (daemon *Daemon) ContainerPause(name string) error {
|
||||
}
|
||||
|
||||
if err := daemon.containerPause(container); err != nil {
|
||||
return derr.ErrorCodePauseError.WithArgs(name, err)
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
@ -36,7 +36,7 @@ func (daemon *Daemon) containerPause(container *container.Container) error {
|
||||
}
|
||||
|
||||
if err := daemon.execDriver.Pause(container.Command); err != nil {
|
||||
return err
|
||||
return derr.ErrorCodeCantPause.WithArgs(container.ID, err)
|
||||
}
|
||||
container.Paused = true
|
||||
daemon.LogContainerEvent(container, "pause")
|
||||
|
||||
Reference in New Issue
Block a user