From 37c4bc64de38b746194d5cd6c7824bfd5c4331a9 Mon Sep 17 00:00:00 2001 From: letheed Date: Thu, 18 Jan 2018 18:35:24 +0100 Subject: [PATCH] Make cyclic resource inclusion error message more helpful --- core/resource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/resource.cpp b/core/resource.cpp index 38f938932c9..2eeed50d9d2 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); } }