Browse Source

Make add_property error more explicit on duplicates

Would have helped solve #23800 faster.
Rémi Verschelde 6 years ago
parent
commit
99a4274f51
1 changed files with 1 additions and 2 deletions
  1. 1 2
      core/class_db.cpp

+ 1 - 2
core/class_db.cpp

@@ -936,9 +936,8 @@ void ClassDB::add_property(StringName p_class, const PropertyInfo &p_pinfo, cons
 	}
 
 #ifdef DEBUG_METHODS_ENABLED
-
 	if (type->property_setget.has(p_pinfo.name)) {
-		ERR_EXPLAIN("Object already has property: " + p_class);
+		ERR_EXPLAIN("Object " + p_class + " already has property: " + p_pinfo.name);
 		ERR_FAIL();
 	}
 #endif