summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-24 10:30:36 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-24 10:30:36 -0300
commit95e3279d34fd99bf816a19a7c0dc5a2d58e418e6 (patch)
tree2c9a54041d4aa9e2b1530d9c836c504cf893ea4c
parent9e0b6057e74181635bf3732879313d3d82bcfd93 (diff)
Properly report a valid error instead of reporting as a bug, closes #3841
-rw-r--r--modules/gdscript/gd_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp
index ac96a2117c..3ef42f81a4 100644
--- a/modules/gdscript/gd_parser.cpp
+++ b/modules/gdscript/gd_parser.cpp
@@ -1069,8 +1069,8 @@ GDParser::Node* GDParser::_parse_expression(Node *p_parent,bool p_static,bool p_
// can be followed by an unary op in a valid combination,
// due to how precedence works, unaries will always dissapear first
- _set_error("Parser bug..");
-
+ _set_error("Unexpected two consecutive operators.");
+ return NULL;
}