diff options
author | Thaddeus Crews <repiteo@outlook.com> | 2024-10-31 20:14:36 -0500 |
---|---|---|
committer | Thaddeus Crews <repiteo@outlook.com> | 2024-10-31 20:14:36 -0500 |
commit | 163bf94d04342ad8d16086e95ea855a86d3699fc (patch) | |
tree | 6cdd9ec78a0db516c8516af7b0842b5efe426ae3 /core/variant/variant_utility.cpp | |
parent | 6ca36277abcfd587c8a61193f278899ec2bc5d32 (diff) | |
parent | 38f9769bc6d560373df961880f99aaaafaae00d9 (diff) | |
download | redot-engine-163bf94d04342ad8d16086e95ea855a86d3699fc.tar.gz |
Merge pull request #98091 from AThousandShips/improve_err_prints_core
[Core] Improve error messages with `vformat`
Diffstat (limited to 'core/variant/variant_utility.cpp')
-rw-r--r-- | core/variant/variant_utility.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant_utility.cpp b/core/variant/variant_utility.cpp index 384fe6c4a6..50932afbb6 100644 --- a/core/variant/variant_utility.cpp +++ b/core/variant/variant_utility.cpp @@ -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(); |