aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorFranz Höltermann <Francis_the_cat@gmx.de>2024-06-14 17:43:09 +0200
committerFranz Höltermann <Francis_the_cat@gmx.de>2024-06-14 17:43:09 +0200
commitc3302615a3f03d2d8556b8a7ba7df01ac6448bff (patch)
tree6cdf05bc057ed93a7e66d6a2467b63f048eeecff /src/main.cpp
parent3c3f0f90c2c8d063845cf0ecb61a23705749e445 (diff)
parentcd5fa8523f79ce981e5047dad5b66155f493d169 (diff)
Merge branch 'master' of https://github.com/FrancisTheCat/Odin
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 70def5802..f4cd40fe9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2934,7 +2934,8 @@ int main(int arg_count, char const **arg_ptr) {
// TODO(jeroen): Remove the `init_filename` param.
// Let's put that on `build_context.build_paths[0]` instead.
if (parse_packages(parser, init_filename) != ParseFile_None) {
- return 1;
+ GB_ASSERT_MSG(any_errors(), "parse_packages failed but no error was reported.");
+ // We depend on the next conditional block to return 1, after printing errors.
}
if (any_errors()) {