Skip to content

Commit

Permalink
Apply changes from suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ authored and nyalldawson committed Nov 15, 2024
1 parent a73fce7 commit e7c04f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/expression/qgsexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ bool QgsExpression::hasParserError() const
QString QgsExpression::parserErrorString() const
{
return d->mParserErrorString.replace( "syntax error, unexpected end of file",
tr( "Invalid expression. Unexpected end. You might not have finished the full expression" ) );
tr( "Incomplete expression. You might not have finished the full expression." ) );
}

QList<QgsExpression::ParserError> QgsExpression::parserErrors() const
Expand Down
3 changes: 1 addition & 2 deletions tests/src/core/testqgsexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ class TestQgsExpression: public QObject
{
QgsExpression exp( QString( "1+" ) );
QCOMPARE( exp.hasParserError(), true );
QCOMPARE( exp.parserErrorString(), "\nInvalid expression. Unexpected end. You might not have finished the full expression" );
QCOMPARE( exp.parserErrorString(), "\nIncomplete expression. You might not have finished the full expression." );
}

void max_errors()
Expand Down Expand Up @@ -6012,7 +6012,6 @@ class TestQgsExpression: public QObject
}
}


};

QGSTEST_MAIN( TestQgsExpression )
Expand Down

0 comments on commit e7c04f1

Please sign in to comment.