diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2024-06-13 19:33:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-13 19:33:02 +0200 |
| commit | 54a3cfb540d25e7e41c5930ef0ceea7340dc64cb (patch) | |
| tree | 6bc77e2a33050302b79a994af73de6f3065eb76c /src | |
| parent | 45044de0b756f9ab018979abd5350533334a54ac (diff) | |
| parent | c560553c21b970d38a302a11e94181de5415d043 (diff) | |
Merge pull request #3753 from Feoramund/fix-silent-token-fail
Fix compiler silently returning if `parse_packages` fails
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.cpp | 3 |
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()) { |