mirror of
https://github.com/godotengine/godot.git
synced 2025-03-07 23:32:58 +08:00
Merge pull request #86350 from Eoin-ONeill-Yokai/text_resource_parse_error_reporting
Improve error message in text resource format parser
This commit is contained in:
commit
03b1934b63
@ -281,7 +281,7 @@ Ref<PackedScene> ResourceLoaderText::_parse_node_tag(VariantParser::ResourcePars
|
||||
if (error == ERR_FILE_MISSING_DEPENDENCIES) {
|
||||
// Resource loading error, just skip it.
|
||||
} else if (error != ERR_FILE_EOF) {
|
||||
_printerr();
|
||||
ERR_PRINT(vformat("Parse Error: %s. [Resource file %s:%d]", error_names[error], res_path, lines));
|
||||
return Ref<PackedScene>();
|
||||
} else {
|
||||
error = OK;
|
||||
|
Loading…
Reference in New Issue
Block a user