summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-11-08 09:59:49 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2019-11-08 09:59:49 -0700
commite4a2add73f2ed5e0f6c24ae1231bb73b2fcc72c1 (patch)
treebd28dfa89c655b95c4ed189dad77976faa7f99d9 /cmd
parent95615f537770bf98d2db67c619111ec0efc880cc (diff)
cmd: Print errors to stderr
Diffstat (limited to 'cmd')
-rw-r--r--cmd/main.go2
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)