diff options
| author | daylilyzeleen <735170336@qq.com> | 2022-09-30 14:40:50 +0800 |
|---|---|---|
| committer | daylilyzeleen <735170336@qq.com> | 2022-09-30 15:16:43 +0800 |
| commit | 3e91ec172932894b52290928f79bf0f63d98d8d6 (patch) | |
| tree | 24b6f506775e4226d7f48db2ce7f6da1bb4f0d9d /include | |
| parent | fa4d18f21cfae319b8f16a1604742cfec6022079 (diff) | |
| download | redot-cpp-3e91ec172932894b52290928f79bf0f63d98d8d6.tar.gz | |
Add detail infos for binding error message.
Diffstat (limited to 'include')
| -rw-r--r-- | include/godot_cpp/core/class_db.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/godot_cpp/core/class_db.hpp b/include/godot_cpp/core/class_db.hpp index fd8be1e..e027ad4 100644 --- a/include/godot_cpp/core/class_db.hpp +++ b/include/godot_cpp/core/class_db.hpp @@ -227,14 +227,14 @@ MethodBind *ClassDB::bind_vararg_method(uint32_t p_flags, const char *p_name, M std::unordered_map<std::string, ClassInfo>::iterator type_it = classes.find(instance_type); if (type_it == classes.end()) { memdelete(bind); - ERR_FAIL_V_MSG(nullptr, "Class doesn't exist."); + ERR_FAIL_V_MSG(nullptr, String("Class '{0}' doesn't exist.").format(instance_type)); } ClassInfo &type = type_it->second; if (type.method_map.find(p_name) != type.method_map.end()) { memdelete(bind); - ERR_FAIL_V_MSG(nullptr, "Binding duplicate method."); + ERR_FAIL_V_MSG(nullptr, String("Binding duplicate method: {0}::{1}.").format(Array::make(instance_type, p_method))); } // register our method bind within our plugin |
