summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-05-11 23:03:44 +0200
committerGitHub <noreply@github.com>2020-05-11 23:03:44 +0200
commit17099ecae737c71dbe9b2f6a7c62482382c95b54 (patch)
tree3011d0d169b3b2f6a03aae0551186a32ad58029a
parent92022cd47f5d99e59779821031542e89cc5d4495 (diff)
parent0d7b6279360e3546f2537797d1f508fc89b01405 (diff)
Merge pull request #38677 from Calinou/tweak-post-import-script-message
Tweak the error message displayed when a post-import script fails
-rw-r--r--editor/import/resource_importer_scene.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp
index b9341b1fb6..37941109a1 100644
--- a/editor/import/resource_importer_scene.cpp
+++ b/editor/import/resource_importer_scene.cpp
@@ -1582,7 +1582,9 @@ Error ResourceImporterScene::import(const String &p_source_file, const String &p
post_import_script->init(base_path, p_source_file);
scene = post_import_script->post_import(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;
}
}