summaryrefslogtreecommitdiff
path: root/generator/app.go
diff options
context:
space:
mode:
authorJordan Liggitt <liggitt@google.com>2022-05-26 20:56:58 -0400
committerJordan Liggitt <liggitt@google.com>2022-05-26 20:56:58 -0400
commit9ea867a0a2276b139a5485e33016a415fa15c90d (patch)
tree9a6ea46e19d01b23326c9cae4d2ef4c279284083 /generator/app.go
parentd8990155422b34cd1354be6074110e4c0bd74c16 (diff)
Write generate errors to stderr
Diffstat (limited to 'generator/app.go')
-rw-r--r--generator/app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/app.go b/generator/app.go
index 901a6d28..0e67ec1d 100644
--- a/generator/app.go
+++ b/generator/app.go
@@ -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)
}