aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gdscript_function.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2017-12-07 18:14:39 -0300
committerJuan Linietsky2017-12-07 18:14:39 -0300
commitdcab01618ae9eaa18e16b377728125379a8f48bc (patch)
treeb694143266f5949e720df5c20bb60a7347494cc8 /modules/gdscript/gdscript_function.cpp
parent8717afbfe14357fc1e3c192676f89a91bd28329b (diff)
downloadgodot-dcab01618ae9eaa18e16b377728125379a8f48bc.tar.gz
godot-dcab01618ae9eaa18e16b377728125379a8f48bc.tar.zst
godot-dcab01618ae9eaa18e16b377728125379a8f48bc.zip
Diffstat (limited to 'modules/gdscript/gdscript_function.cpp')
-rw-r--r--modules/gdscript/gdscript_function.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gdscript_function.cpp b/modules/gdscript/gdscript_function.cpp
index f00ac1f7e..d2ce318f8 100644
--- a/modules/gdscript/gdscript_function.cpp
+++ b/modules/gdscript/gdscript_function.cpp
@@ -515,7 +515,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
} else {
v = "of type '" + _get_var_type(index) + "'";
}
- err_text = "Invalid set index " + v + " (on base: '" + _get_var_type(dst) + "').";
+ err_text = "Invalid set index " + v + " (on base: '" + _get_var_type(dst) + "') with value of type '"+_get_var_type(value)+"'";
OPCODE_BREAK;
}
#endif
@@ -574,7 +574,7 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
#ifdef DEBUG_ENABLED
if (!valid) {
String err_type;
- err_text = "Invalid set index '" + String(*index) + "' (on base: '" + _get_var_type(dst) + "').";
+ err_text = "Invalid set index '" + String(*index) + "' (on base: '" + _get_var_type(dst) + "') with value of type '"+_get_var_type(value)+"'.";
OPCODE_BREAK;
}
#endif