Pārlūkot izejas kodu

Unable to find image error should print to stderr

Isao Jonas 12 gadi atpakaļ
vecāks
revīzija
4ff649ce85
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -1423,7 +1423,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)