aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorJuan Linietsky2016-06-12 12:32:45 -0300
committerJuan Linietsky2016-06-12 12:32:45 -0300
commit4bb93c976c6b67b4538c8a012ea549ec24e3ac1a (patch)
treeaa7c6f1a04000c25f195726a582fbef75b667b0a /core
parent83bf8036def06e8038891b1f143ac86c1d9b0c0c (diff)
downloadgodot-4bb93c976c6b67b4538c8a012ea549ec24e3ac1a.tar.gz
godot-4bb93c976c6b67b4538c8a012ea549ec24e3ac1a.tar.zst
godot-4bb93c976c6b67b4538c8a012ea549ec24e3ac1a.zip
Diffstat (limited to 'core')
-rw-r--r--core/variant.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant.cpp b/core/variant.cpp
index 38f5e69cc..472d6cf56 100644
--- a/core/variant.cpp
+++ b/core/variant.cpp
@@ -3029,9 +3029,9 @@ String Variant::get_call_error_text(Object* p_base, const StringName& p_method,c
int errorarg=ce.argument;
err_text="Cannot convert argument "+itos(errorarg+1)+" from "+Variant::get_type_name(p_argptrs[errorarg]->get_type())+" to "+Variant::get_type_name(ce.expected)+".";
} else if (ce.error==Variant::CallError::CALL_ERROR_TOO_MANY_ARGUMENTS) {
- err_text="Expected "+itos(ce.argument)+" arguments.";
+ err_text="Method expected "+itos(ce.argument)+" arguments, but called with "+itos(p_argcount)+".";
} else if (ce.error==Variant::CallError::CALL_ERROR_TOO_FEW_ARGUMENTS) {
- err_text="Expected "+itos(ce.argument)+" arguments.";
+ err_text="Method expected "+itos(ce.argument)+" arguments, but called with "+itos(p_argcount)+".";
} else if (ce.error==Variant::CallError::CALL_ERROR_INVALID_METHOD) {
err_text="Method not found.";
} else if (ce.error==Variant::CallError::CALL_ERROR_INSTANCE_IS_NULL) {