Tweak the error message displayd when a post-import script fails
See #38662.
(cherry picked from commit 0d7b627936
)
This commit is contained in:
parent
40d8ed023c
commit
6692681618
|
@ -1490,7 +1490,9 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p
|
||||||
post_import_script->init(base_path, p_source_file);
|
post_import_script->init(base_path, p_source_file);
|
||||||
scene = post_import_script->post_import(scene);
|
scene = post_import_script->post_import(scene);
|
||||||
if (!scene) {
|
if (!scene) {
|
||||||
EditorNode::add_io_error(TTR("Error running post-import script:") + " " + post_import_script_path);
|
EditorNode::add_io_error(
|
||||||
|
TTR("Error running post-import script:") + " " + post_import_script_path + "\n" +
|
||||||
|
TTR("Did you return a Node-derived object in the `post_import()` method?"));
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue