diff --git a/cmd/main.go b/cmd/main.go index 9997cc401..a86c04ac6 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -68,7 +68,7 @@ func Main() { exitCode, err := subcommand.Func(Flags{fs}) if err != nil { - fmt.Printf("%s: %v\n", subcommand.Name, err) + fmt.Fprintf(os.Stderr, "%s: %v\n", subcommand.Name, err) } os.Exit(exitCode)