summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-07 22:25:49 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-07 22:25:49 +0200
commit0eba81ef79b96922a0e1637f812e4e1df4d29a4c (patch)
tree481d6a609243aea99e4f7f5a2bece06a9c6147c4 /include/godot_cpp
parent3f3253ec2fd4c1844f113cb4bb034964cd2964aa (diff)
parent3e91ec172932894b52290928f79bf0f63d98d8d6 (diff)
downloadredot-cpp-0eba81ef79b96922a0e1637f812e4e1df4d29a4c.tar.gz
Merge pull request #876 from Daylily-Zeleen/Daylily-Zeleen/master
Add detail infos for binding error message.
Diffstat (limited to 'include/godot_cpp')
-rw-r--r--include/godot_cpp/core/class_db.hpp4
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 89b4286..c9a6186 100644
--- a/include/godot_cpp/core/class_db.hpp
+++ b/include/godot_cpp/core/class_db.hpp
@@ -231,14 +231,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