summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorletheed <letheed@outlook.com>2018-01-18 18:35:24 +0100
committerletheed <letheed@outlook.com>2018-01-18 18:35:24 +0100
commit37c4bc64de38b746194d5cd6c7824bfd5c4331a9 (patch)
treec71a3586987ef3db60c2ca22a7eab457a0421f08 /core
parent05e4303e1d5ace8755c2a101358905bb10f1d69e (diff)
Make cyclic resource inclusion error message more helpful
Diffstat (limited to 'core')
-rw-r--r--core/resource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/resource.cpp b/core/resource.cpp
index 38f938932c..2eeed50d9d 100644
--- a/core/resource.cpp
+++ b/core/resource.cpp
@@ -74,7 +74,7 @@ void Resource::set_path(const String &p_path, bool p_take_over) {
bool exists = ResourceCache::resources.has(p_path);
ResourceCache::lock->read_unlock();
- ERR_EXPLAIN("Another resource is loaded from path: " + p_path);
+ ERR_EXPLAIN("Another resource is loaded from path: " + p_path + " (possible cyclic resource inclusion)");
ERR_FAIL_COND(exists);
}
}