mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 07:26:03 -06:00
#1977 Expression Parser : Add error text if expression compiling fails
This commit is contained in:
parent
2b89b595f3
commit
a3cd62d315
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user