diff --git a/src/error.cpp b/src/error.cpp index b28ef7b10..277081459 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -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();