aboutsummaryrefslogtreecommitdiff
path: root/src/docs_writer.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-19 16:29:45 +0000
committergingerBill <bill@gingerbill.org>2024-03-19 16:29:45 +0000
commit433109ff52d2db76069273cd53b7aebf6aea9be0 (patch)
treeffe7906fd48209f6afda1ff44f847c64f582e2ef /src/docs_writer.cpp
parentba428fecdb309846b9a6dc8a6a3d738f2034f2ff (diff)
Replace `gb_exit(1)` with `exit_with_errors()` where appropriate
Diffstat (limited to 'src/docs_writer.cpp')
-rw-r--r--src/docs_writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp
index 26d8027a9..824445ed5 100644
--- a/src/docs_writer.cpp
+++ b/src/docs_writer.cpp
@@ -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));