-
Notifications
You must be signed in to change notification settings - Fork 923
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
If queries file contains syntax error, sqlc generate
prints error into stderr, but exits with 0 code.
I expect exit code = 1.
I've found the reason.
Variable errored
shadows variable from outer scope
https://github.com/kyleconroy/sqlc/blob/9fad44806957190645d1607e404cdf89c46b07f5/internal/cmd/generate.go#L154
... and this branch is not executed:
https://github.com/kyleconroy/sqlc/blob/9fad44806957190645d1607e404cdf89c46b07f5/internal/cmd/generate.go#L185
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working