aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-19 17:02:01 +0000
committergingerBill <bill@gingerbill.org>2024-03-19 17:02:01 +0000
commit83dcce9a58c72f9f4e079aae8e06e932773ec8e2 (patch)
tree92381999f6d0033b1566bf1f549c74e147d847ed /src/parser.cpp
parentcc62773a05cb6c7a00cfcb916da1b6fdde7de3e8 (diff)
parent433109ff52d2db76069273cd53b7aebf6aea9be0 (diff)
Merge branch 'master' into orca-dev
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index 14035d6d7..1aa40ccbf 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -1484,7 +1484,7 @@ gb_internal Token expect_token(AstFile *f, TokenKind kind) {
String p = token_to_string(prev);
syntax_error(f->curr_token, "Expected '%.*s', got '%.*s'", LIT(c), LIT(p));
if (prev.kind == Token_EOF) {
- gb_exit(1);
+ exit_with_errors();
}
}
@@ -6177,7 +6177,7 @@ gb_internal ParseFileError process_imported_file(Parser *p, ImportedFile importe
if (err == ParseFile_EmptyFile) {
if (fi.fullpath == p->init_fullpath) {
syntax_error(pos, "Initial file is empty - %.*s\n", LIT(p->init_fullpath));
- gb_exit(1);
+ exit_with_errors();
}
} else {
switch (err) {