summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_script.cpp
diff options
context:
space:
mode:
authorBil Bas (Spooner) <bil.bagpuss@gmail.com>2015-02-19 16:59:37 +0000
committerBil Bas (Spooner) <bil.bagpuss@gmail.com>2015-02-19 16:59:37 +0000
commit748311ec42b6818f5481ad4ac4152f40ff1a8a6f (patch)
tree2297f52bde7fb48055fc31ef7e413c52128fd620 /modules/gdscript/gd_script.cpp
parentdb2381de7afffc932d051ec9fc853bfe06645060 (diff)
Added info about operator after bespoke error message.
Diffstat (limited to 'modules/gdscript/gd_script.cpp')
-rw-r--r--modules/gdscript/gd_script.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp
index 2a1e7a18df..bf4e9b8d8a 100644
--- a/modules/gdscript/gd_script.cpp
+++ b/modules/gdscript/gd_script.cpp
@@ -340,6 +340,7 @@ Variant GDFunction::call(GDInstance *p_instance, const Variant **p_args, int p_a
if (dst->get_type()==Variant::STRING) {
//return a string when invalid with the error
err_text=*dst;
+ err_text += " in operator '"+Variant::get_operator_name(op)+"'.";
} else {
err_text="Invalid operands '"+Variant::get_type_name(a->get_type())+"' and '"+Variant::get_type_name(b->get_type())+"' in operator '"+Variant::get_operator_name(op)+"'.";
}