Merge pull request #76314 from pkowal1982/lerp_error_message

Fix lerp error message
This commit is contained in:
Rémi Verschelde 2023-04-21 15:51:36 +02:00
commit 65d8659eb6
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

View File

@ -374,6 +374,7 @@ struct VariantUtilityFunctions {
r_error.error = Callable::CallError::CALL_OK;
if (from.get_type() != to.get_type()) {
r_error.error = Callable::CallError::CALL_ERROR_INVALID_ARGUMENT;
r_error.expected = from.get_type();
r_error.argument = 1;
return Variant();
}