diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-10-11 16:17:49 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2024-10-30 15:55:51 +0100 |
commit | 38f9769bc6d560373df961880f99aaaafaae00d9 (patch) | |
tree | 4bb21478d3cefde5c03c864bbaf65a31c1f7576a /core/math/expression.cpp | |
parent | 8004c7524fb9f43425c4d6f614410a76678e0f7c (diff) | |
download | redot-engine-38f9769bc6d560373df961880f99aaaafaae00d9.tar.gz |
[Core] Improve error messages with `vformat`
Diffstat (limited to 'core/math/expression.cpp')
-rw-r--r-- | core/math/expression.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/expression.cpp b/core/math/expression.cpp index 0692ece1e6..35303fe9ac 100644 --- a/core/math/expression.cpp +++ b/core/math/expression.cpp @@ -1491,7 +1491,7 @@ Error Expression::parse(const String &p_expression, const Vector<String> &p_inpu } Variant Expression::execute(const Array &p_inputs, Object *p_base, bool p_show_error, bool p_const_calls_only) { - ERR_FAIL_COND_V_MSG(error_set, Variant(), "There was previously a parse error: " + error_str + "."); + ERR_FAIL_COND_V_MSG(error_set, Variant(), vformat("There was previously a parse error: %s.", error_str)); execution_error = false; Variant output; |