diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-11-08 09:59:49 -0700 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-11-08 09:59:49 -0700 |
commit | e4a2add73f2ed5e0f6c24ae1231bb73b2fcc72c1 (patch) | |
tree | bd28dfa89c655b95c4ed189dad77976faa7f99d9 | |
parent | 95615f537770bf98d2db67c619111ec0efc880cc (diff) |
cmd: Print errors to stderr
-rw-r--r-- | cmd/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/main.go b/cmd/main.go index 9997cc4..a86c04a 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) |