aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-19 16:29:45 +0000
committergingerBill <bill@gingerbill.org>2024-03-19 16:29:45 +0000
commit433109ff52d2db76069273cd53b7aebf6aea9be0 (patch)
treeffe7906fd48209f6afda1ff44f847c64f582e2ef /src/checker.cpp
parentba428fecdb309846b9a6dc8a6a3d738f2034f2ff (diff)
Replace `gb_exit(1)` with `exit_with_errors()` where appropriate
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 836f803fc..0efe61fba 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -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);