Skip to content

Commit 97b5c14

Browse files
authored
Merge pull request godotengine#90269 from KoBeWi/sir,_your_file_cannot_be_opened
Ignore `ERR_FILE_CANT_OPEN` error when loading
2 parents 980e4d7 + f0cbd38 commit 97b5c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/variant/variant_parser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ Error VariantParser::parse_value(Token &token, Variant &value, Stream *p_stream,
10271027
Error err = p_res_parser->ext_func(p_res_parser->userdata, p_stream, res, line, r_err_str);
10281028
if (err) {
10291029
// If the file is missing, the error can be ignored.
1030-
if (err != ERR_FILE_NOT_FOUND && err != ERR_CANT_OPEN) {
1030+
if (err != ERR_FILE_NOT_FOUND && err != ERR_CANT_OPEN && err != ERR_FILE_CANT_OPEN) {
10311031
return err;
10321032
}
10331033
}

0 commit comments

Comments
 (0)