You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
[Core] Improve error messages with vformat
This commit is contained in:
@@ -1671,7 +1671,7 @@ static void register_utility_function(const String &p_name, const Vector<String>
|
||||
bfi.argnames = argnames;
|
||||
bfi.argcount = T::get_argument_count();
|
||||
if (!bfi.is_vararg) {
|
||||
ERR_FAIL_COND_MSG(argnames.size() != bfi.argcount, "wrong number of arguments binding utility function: " + name);
|
||||
ERR_FAIL_COND_MSG(argnames.size() != bfi.argcount, vformat("Wrong number of arguments binding utility function: '%s'.", name));
|
||||
}
|
||||
bfi.get_arg_type = T::get_argument_type;
|
||||
bfi.return_type = T::get_return_type();
|
||||
|
||||
Reference in New Issue
Block a user