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:
Zhang Wei
2016-02-03 14:29:15 +08:00
parent 2a82c3d7ca
commit 68f96de053
17 changed files with 58 additions and 32 deletions

View File

@ -23,7 +23,7 @@ func (cli *DockerCli) CmdWait(args ...string) error {
for _, name := range cmd.Args() {
status, err := cli.client.ContainerWait(name)
if err != nil {
errs = append(errs, fmt.Sprintf("Failed to wait container (%s): %s", name, err))
errs = append(errs, err.Error())
} else {
fmt.Fprintf(cli.out, "%d\n", status)
}