mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-09 14:22:18 -04:00
fix syntax error type with -json-errors
This commit is contained in:
1 parent
17cbeb68cf
commit
f28bb675cd
1 file changed
+2
-2
+2
-2
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user