Use stderr instead of logrus for CLI error messages
Signed-off-by: Doug Davis <dug@us.ibm.com> Upstream-commit: 0024935f641ab596732f9162d3eab795bbc2ae06 Component: engine
This commit is contained in:
@ -5,7 +5,6 @@ import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
|
||||
"github.com/Sirupsen/logrus"
|
||||
"github.com/docker/docker/api"
|
||||
"github.com/docker/docker/api/types"
|
||||
"github.com/docker/docker/autogen/dockerversion"
|
||||
@ -40,7 +39,7 @@ func (cli *DockerCli) CmdVersion(args ...string) error {
|
||||
|
||||
var v types.Version
|
||||
if err := json.NewDecoder(stream).Decode(&v); err != nil {
|
||||
logrus.Errorf("Error reading remote version: %s", err)
|
||||
fmt.Fprintf(cli.err, "Error reading remote version: %s\n", err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user