fix syntax error type with -json-errors

This commit is contained in:
xdBronch committed 2026-09-12 12:17:59 -04:00
1 parent 17cbeb68cf
commit f28bb675cd
1 file changed
+2 -2
+2 -2
View File
@@ -651,7 +651,7 @@ gb_internal void syntax_error_va(TokenPos const &pos, TokenPos end, char const *
gb_exit(1);
}
push_error_value(pos, ErrorValue_Warning);
push_error_value(pos, ErrorValue_Error);
if (pos.line == 0) {
error_out_empty();
@@ -683,7 +683,7 @@ gb_internal void syntax_error_with_verbose_va(TokenPos const &pos, TokenPos end,
gb_exit(1);
}
push_error_value(pos, ErrorValue_Warning);
push_error_value(pos, ErrorValue_Error);
if (pos.line == 0) {
error_out_empty();