Skip to content

Commit

Permalink
Fix #3603
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerBill committed May 20, 2024
1 parent bc706f8 commit 856537f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/check_builtin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1092,7 +1092,13 @@ gb_internal bool cache_load_file_directive(CheckerContext *c, Ast *call, String

BlockingMutex *ignore_mutex = nullptr;
bool ok = determine_path_from_string(ignore_mutex, call, base_dir, original_string, &path);
gb_unused(ok);
if (!ok) {
if (err_on_not_found) {
error(ce->proc, "Failed to `#%.*s` file: %.*s; invalid file or cannot be found", LIT(builtin_name), LIT(original_string));
}
call->state_flags |= StateFlag_DirectiveWasFalse;
return false;
}
}

MUTEX_GUARD(&c->info->load_file_mutex);
Expand Down

0 comments on commit 856537f

Please sign in to comment.