aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorjason <jkercher@rlcsystems.com>2024-06-19 12:33:13 -0400
committerjason <jkercher@rlcsystems.com>2024-06-19 12:33:13 -0400
commite6d84d18d30517ab6c7e8559c18b4271bbff9d61 (patch)
treeaad03230914fe6541ed6a939864856a16af8c268 /src/main.cpp
parenta9b6d282914e2a63292e59a4839995ccdc881f52 (diff)
parent2797dc6452bfd5c20d47271d52647ef40cce74fc (diff)
Merge remote-tracking branch 'origin/master' into more-windows-comm
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()) {