mirror of
https://github.com/OPM/ResInsight.git
synced 2026-09-03 20:53:13 -05:00
#1977 Expression Parser : Add error text if expression compiling fails
This commit is contained in:
@@ -65,6 +65,11 @@ bool ExpressionParserImpl::evaluate(const QString& expressionText, QString* erro
|
||||
parser_t parser;
|
||||
if (!parser.compile(expressionText.toStdString(), expression))
|
||||
{
|
||||
if (errorText)
|
||||
{
|
||||
*errorText = parserErrorText(parser);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user