Selaa lähdekoodia

Unable to find image error should print to stderr

Isao Jonas 12 vuotta sitten
vanhempi
commit
4ff649ce85
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -1423,7 +1423,7 @@ func (cli *DockerCli) CmdRun(args ...string) error {
 			tag = DEFAULTTAG
 			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{}
 		v := url.Values{}
 		repos, tag := utils.ParseRepositoryTag(config.Image)
 		repos, tag := utils.ParseRepositoryTag(config.Image)