mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 02:42:09 +00:00
Replace gb_exit(1) with exit_with_errors() where appropriate
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user