mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-10 06:45:47 -04:00
Replace gb_exit(1) with exit_with_errors() where appropriate
This commit is contained in:
1 parent
ba428fecdb
commit
433109ff52
6 files changed
+17
-13
No files matched your search
+1
-1
@@ -1170,7 +1170,7 @@ gb_internal void odin_doc_write_to_file(OdinDocWriter *w, char const *filename)
|
||||
gbFileError err = gb_file_open_mode(&f, gbFileMode_Write, filename);
|
||||
if (err != gbFileError_None) {
|
||||
gb_printf_err("Failed to write .odin-doc to: %s\n", filename);
|
||||
gb_exit(1);
|
||||
exit_with_errors();
|
||||
return;
|
||||
}
|
||||
defer (gb_file_close(&f));
|
||||
|
||||
Reference in new issue
Block a user