aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorFrancisTheCat <90558133+FrancisTheCat@users.noreply.github.com>2024-06-14 16:34:21 +0200
committerGitHub <noreply@github.com>2024-06-14 16:34:21 +0200
commitcd5fa8523f79ce981e5047dad5b66155f493d169 (patch)
tree1a8acb79d3bf1b5fca3f0c6ac20bece15a2cbfd2 /src/main.cpp
parentec7b77fc0f6ed20eecf25039c6acbe2050cef877 (diff)
parentff4787070d9673a417f549f1b9452e675c96f992 (diff)
Merge branch 'odin-lang:master' into master
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()) {