Parcourir la source

Merge pull request #15844 from letheed/better-error-msg

Make cyclic resource inclusion error message more helpful
Rémi Verschelde il y a 7 ans
Parent
commit
5342ec32b5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      core/resource.cpp

+ 1 - 1
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);
 		}
 	}