diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-09-03 11:31:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-03 11:31:27 +0200 |
commit | f57ade8f800671e50e421aa1f985d75044290176 (patch) | |
tree | 81aa951d0932add1a0a396474f3596d39d9a12d1 | |
parent | cb20d2bc1da5bf343a241973534768da00145629 (diff) | |
parent | 58ed3037c00912f1f573b8ce0d8efe6f8a50cb67 (diff) |
Merge pull request #41460 from Calinou/improve-resource-load-fail-message
Improve the resource loading error message to mention the need to import
-rw-r--r-- | core/io/resource_loader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/io/resource_loader.cpp b/core/io/resource_loader.cpp index 8b3a1f6637..b5c598e860 100644 --- a/core/io/resource_loader.cpp +++ b/core/io/resource_loader.cpp @@ -195,7 +195,8 @@ RES ResourceLoader::_load(const String &p_path, const String &p_original_path, c return res; } - ERR_FAIL_COND_V_MSG(found, RES(), "Failed loading resource: " + p_path + "."); + ERR_FAIL_COND_V_MSG(found, RES(), + vformat("Failed loading resource: %s. Make sure resources have been imported by opening the project in the editor at least once.", p_path)); #ifdef TOOLS_ENABLED FileAccessRef file_check = FileAccess::create(FileAccess::ACCESS_RESOURCES); |