diff options
| author | gingerBill <bill@gingerbill.org> | 2024-03-19 16:29:45 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-03-19 16:29:45 +0000 |
| commit | 433109ff52d2db76069273cd53b7aebf6aea9be0 (patch) | |
| tree | ffe7906fd48209f6afda1ff44f847c64f582e2ef /src/error.cpp | |
| parent | ba428fecdb309846b9a6dc8a6a3d738f2034f2ff (diff) | |
Replace `gb_exit(1)` with `exit_with_errors()` where appropriate
Diffstat (limited to 'src/error.cpp')
| -rw-r--r-- | src/error.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/error.cpp b/src/error.cpp index 509470602..8d550e969 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -613,6 +613,10 @@ gb_internal void compiler_error(char const *fmt, ...) { } +gb_internal void exit_with_errors(void) { + print_all_errors(); + gb_exit(1); +} |