Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit ac0a51fc authored by kraus's avatar kraus
Browse files

throw error if optimizer expression parser doesn't return successfully or if...

throw error if optimizer expression parser doesn't return successfully or if not whole expression has been parsed
parent 87117740
No related branches found
No related tags found
No related merge requests found
...@@ -176,7 +176,7 @@ private: ...@@ -176,7 +176,7 @@ private:
bool success = phrase_parse(iter, end, expression, skipper, ast_); bool success = phrase_parse(iter, end, expression, skipper, ast_);
if (success && iter != end) { if (!success || iter != end) {
std::cout << "Parsing failed!" << std::endl; std::cout << "Parsing failed!" << std::endl;
throw new OptPilotException("Expression::parse()", throw new OptPilotException("Expression::parse()",
"Parsing failed!"); "Parsing failed!");
...@@ -191,4 +191,4 @@ private: ...@@ -191,4 +191,4 @@ private:
} }
}; };
#endif #endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment