Replace gb_exit(1) with exit_with_errors() where appropriate

This commit is contained in:
gingerBill
2024-03-19 16:29:45 +00:00
parent ba428fecdb
commit 433109ff52
6 changed files with 17 additions and 13 deletions

View File

@@ -1204,7 +1204,7 @@ gb_internal void init_universal(void) {
}
if (defined_values_double_declaration) {
gb_exit(1);
exit_with_errors();
}
@@ -4504,7 +4504,7 @@ gb_internal void add_import_dependency_node(Checker *c, Ast *decl, PtrMap<AstPac
if (found == nullptr) {
Token token = ast_token(decl);
error(token, "Unable to find package: %.*s", LIT(path));
gb_exit(1);
exit_with_errors();
}
AstPackage *pkg = *found;
GB_ASSERT(pkg->scope != nullptr);