summaryrefslogtreecommitdiffstats
path: root/core/variant/variant_construct.cpp
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-10-31 20:14:36 -0500
committerThaddeus Crews <repiteo@outlook.com>2024-10-31 20:14:36 -0500
commit163bf94d04342ad8d16086e95ea855a86d3699fc (patch)
tree6cdd9ec78a0db516c8516af7b0842b5efe426ae3 /core/variant/variant_construct.cpp
parent6ca36277abcfd587c8a61193f278899ec2bc5d32 (diff)
parent38f9769bc6d560373df961880f99aaaafaae00d9 (diff)
downloadredot-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_construct.cpp')
-rw-r--r--core/variant/variant_construct.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant_construct.cpp b/core/variant/variant_construct.cpp
index 6c37d5e4b7..9706457549 100644
--- a/core/variant/variant_construct.cpp
+++ b/core/variant/variant_construct.cpp
@@ -43,7 +43,7 @@ static LocalVector<VariantConstructData> construct_data[Variant::VARIANT_MAX];
template <typename T>
static void add_constructor(const Vector<String> &arg_names) {
- ERR_FAIL_COND_MSG(arg_names.size() != T::get_argument_count(), "Argument names size mismatch for " + Variant::get_type_name(T::get_base_type()) + ".");
+ ERR_FAIL_COND_MSG(arg_names.size() != T::get_argument_count(), vformat("Argument names size mismatch for '%s'.", Variant::get_type_name(T::get_base_type())));
VariantConstructData cd;
cd.construct = T::construct;