From 6e49bc821025067e03341bc6e08ceab2acc81a88 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 24 Jun 2016 10:30:36 -0300 Subject: [PATCH] Properly report a valid error instead of reporting as a bug, closes #3841 (cherry picked from commit 95e3279d34fd99bf816a19a7c0dc5a2d58e418e6) --- modules/gdscript/gd_parser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gdscript/gd_parser.cpp b/modules/gdscript/gd_parser.cpp index 3c47317f99b..97a969265e6 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; }