From 66926816184307d6104ff568ecf03b06b2bdcc11 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 11 May 2020 21:09:36 +0200 Subject: [PATCH] Tweak the error message displayd when a post-import script fails See #38662. (cherry picked from commit 0d7b6279360e3546f2537797d1f508fc89b01405) --- editor/import/resource_importer_scene.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/import/resource_importer_scene.cpp b/editor/import/resource_importer_scene.cpp index 0a612c64b20..3ae69d8e444 100644 --- a/editor/import/resource_importer_scene.cpp +++ b/editor/import/resource_importer_scene.cpp @@ -1490,7 +1490,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; } }