From e4a2add73f2ed5e0f6c24ae1231bb73b2fcc72c1 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 8 Nov 2019 09:59:49 -0700 Subject: [PATCH] cmd: Print errors to stderr --- cmd/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/main.go b/cmd/main.go index 9997cc40..a86c04ac 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)