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:
@ -20,7 +20,7 @@ func (cli *DockerCli) CmdPause(args ...string) error {
|
||||
var errs []string
|
||||
for _, name := range cmd.Args() {
|
||||
if err := cli.client.ContainerPause(name); err != nil {
|
||||
errs = append(errs, fmt.Sprintf("Failed to pause container (%s): %s", name, err))
|
||||
errs = append(errs, err.Error())
|
||||
} else {
|
||||
fmt.Fprintf(cli.out, "%s\n", name)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user