mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 14:18:47 +00:00
Merge pull request #3753 from Feoramund/fix-silent-token-fail
Fix compiler silently returning if `parse_packages` fails
This commit is contained in:
+2
-1
@@ -2934,7 +2934,8 @@ int main(int arg_count, char const **arg_ptr) {
|
|||||||
// TODO(jeroen): Remove the `init_filename` param.
|
// TODO(jeroen): Remove the `init_filename` param.
|
||||||
// Let's put that on `build_context.build_paths[0]` instead.
|
// Let's put that on `build_context.build_paths[0]` instead.
|
||||||
if (parse_packages(parser, init_filename) != ParseFile_None) {
|
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()) {
|
if (any_errors()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user