Write generate errors to stderr

This commit is contained in:
Jordan Liggitt 2022-05-26 20:56:58 -04:00
parent d899015542
commit 9ea867a0a2
1 changed files with 1 additions and 1 deletions

View File

@ -702,7 +702,7 @@ func main() {
errs := ctx.Validate()
if len(errs) != 0 {
for _, err := range errs {
fmt.Printf("ERROR: %s\n", err.Error())
fmt.Fprintf(os.Stderr, "ERROR: %s\n", err.Error())
}
os.Exit(1)
}