Clarity warning and error printing

This commit is contained in:
gingerBill
2024-04-02 23:39:14 +01:00
parent 692a47f080
commit a9bfb3ac2e
2 changed files with 14 additions and 6 deletions
+7
View File
@@ -2694,6 +2694,9 @@ int main(int arg_count, char const **arg_ptr) {
print_all_errors();
return 1;
}
if (any_warnings()) {
print_all_errors();
}
MAIN_TIME_SECTION("type check");
@@ -2706,6 +2709,10 @@ int main(int arg_count, char const **arg_ptr) {
print_all_errors();
return 1;
}
if (any_warnings()) {
print_all_errors();
}
if (build_context.command_kind == Command_strip_semicolon) {
return strip_semicolons(parser);