summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-11-20 08:47:21 +0100
committerRémi Verschelde <rverschelde@gmail.com>2018-11-20 08:47:21 +0100
commit99a4274f513ef1de6417d54bac366521e0654107 (patch)
tree93c7cb83b0a0698d731c55ce9e96c69c9043ea66 /core
parente3d47916d5367ada14fc60b29375e3d1570b33c3 (diff)
Make add_property error more explicit on duplicates
Would have helped solve #23800 faster.
Diffstat (limited to 'core')
-rw-r--r--core/class_db.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp
index 6565d242a2..052a4586fe 100644
--- a/core/class_db.cpp
+++ b/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