Skip to content

Commit bda1a00

Browse files
authored
Exit with non-zero error code when parsing fails (#870)
1 parent 9fad448 commit bda1a00

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/cmd/generate.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,9 @@ func Generate(e Env, dir, filename string, stderr io.Writer) (map[string]string,
151151
name = combo.Kotlin.Package
152152
}
153153

154-
result, errored := parse(e, name, dir, sql.SQL, combo, parseOpts, stderr)
155-
if errored {
154+
result, failed := parse(e, name, dir, sql.SQL, combo, parseOpts, stderr)
155+
if failed {
156+
errored = true
156157
break
157158
}
158159

0 commit comments

Comments
 (0)