Merge pull request #90269 from KoBeWi/sir,_your_file_cannot_be_opened

Ignore `ERR_FILE_CANT_OPEN` error when loading
This commit is contained in:
Rémi Verschelde 2024-04-08 11:38:15 +02:00 committed by GitHub
commit 97b5c142f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1027,7 +1027,7 @@ Error VariantParser::parse_value(Token &token, Variant &value, Stream *p_stream,
Error err = p_res_parser->ext_func(p_res_parser->userdata, p_stream, res, line, r_err_str); Error err = p_res_parser->ext_func(p_res_parser->userdata, p_stream, res, line, r_err_str);
if (err) { if (err) {
// If the file is missing, the error can be ignored. // If the file is missing, the error can be ignored.
if (err != ERR_FILE_NOT_FOUND && err != ERR_CANT_OPEN) { if (err != ERR_FILE_NOT_FOUND && err != ERR_CANT_OPEN && err != ERR_FILE_CANT_OPEN) {
return err; return err;
} }
} }