cmd: Print errors to stderr

This commit is contained in:
Matthew Holt 2019-11-08 09:59:49 -07:00
parent 95615f5377
commit e4a2add73f
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -68,7 +68,7 @@ func Main() {
exitCode, err := subcommand.Func(Flags{fs}) exitCode, err := subcommand.Func(Flags{fs})
if err != nil { if err != nil {
fmt.Printf("%s: %v\n", subcommand.Name, err) fmt.Fprintf(os.Stderr, "%s: %v\n", subcommand.Name, err)
} }
os.Exit(exitCode) os.Exit(exitCode)