Преглед изворни кода

Merge pull request #1738 from jonasi/error-to-stderr

Unable to find image error should print to stderr
Michael Crosby пре 12 година
родитељ
комит
74982bda32
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -1426,7 +1426,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
 			tag = DEFAULTTAG
 		}
 
-		fmt.Printf("Unable to find image '%s' (tag: %s) locally\n", config.Image, tag)
+		fmt.Fprintf(cli.err, "Unable to find image '%s' (tag: %s) locally\n", config.Image, tag)
 
 		v := url.Values{}
 		repos, tag := utils.ParseRepositoryTag(config.Image)