mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 07:17:48 -04:00
Fix printing errors issue
This commit is contained in:
1 parent
50618759a6
commit
53b02c5e6f
1 file changed
+6
-2
+6
-2
@@ -600,7 +600,9 @@ gb_internal void syntax_error_with_verbose(TokenPos pos, TokenPos end, char cons
|
||||
|
||||
|
||||
gb_internal void compiler_error(char const *fmt, ...) {
|
||||
print_all_errors();
|
||||
if (any_errors()) {
|
||||
print_all_errors();
|
||||
}
|
||||
|
||||
va_list va;
|
||||
|
||||
@@ -614,7 +616,9 @@ gb_internal void compiler_error(char const *fmt, ...) {
|
||||
|
||||
|
||||
gb_internal void exit_with_errors(void) {
|
||||
print_all_errors();
|
||||
if (any_errors()) {
|
||||
print_all_errors();
|
||||
}
|
||||
gb_exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user