diff options
| author | Bernhard Liebl | 2017-12-26 23:16:41 +0100 |
|---|---|---|
| committer | Bernhard Liebl | 2017-12-26 23:16:41 +0100 |
| commit | 29f7f48c42a4895b6d5fb4ffe8117bfd766bdc9f (patch) | |
| tree | 21293a7990c5320111b33f52d51a0e5fdb178672 /modules/gdscript/gdscript_function.cpp | |
| parent | 32d8b99bc31e3762ae0dc017a05567da2802a313 (diff) | |
| download | godot-29f7f48c42a4895b6d5fb4ffe8117bfd766bdc9f.tar.gz godot-29f7f48c42a4895b6d5fb4ffe8117bfd766bdc9f.tar.zst godot-29f7f48c42a4895b6d5fb4ffe8117bfd766bdc9f.zip | |
Diffstat (limited to 'modules/gdscript/gdscript_function.cpp')
| -rw-r--r-- | modules/gdscript/gdscript_function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_function.cpp b/modules/gdscript/gdscript_function.cpp index d6352f1e6..b1c72bc1e 100644 --- a/modules/gdscript/gdscript_function.cpp +++ b/modules/gdscript/gdscript_function.cpp @@ -605,7 +605,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a #ifdef DEBUG_ENABLED if (!valid) { if (src->has_method(*index)) { - err_text = "Invalid get index '" + index->operator String() + "' (on base: '" + _get_var_type(src) + "'). Did you mean '." + index->operator String() + "()' ?"; + err_text = "Invalid get index '" + index->operator String() + "' (on base: '" + _get_var_type(src) + "'). Did you mean '." + index->operator String() + "()' or funcref(obj, \"" + index->operator String() + "\") ?"; } else { err_text = "Invalid get index '" + index->operator String() + "' (on base: '" + _get_var_type(src) + "')."; } |
