cmd: Print errors to stderr

pull/2871/head
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
1 changed files with 1 additions and 1 deletions

View File

@ -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)