From e7c04f17e68f9e7a2a457f9fed3ca96f00afed10 Mon Sep 17 00:00:00 2001 From: Harrissou Sant-anna Date: Fri, 15 Nov 2024 02:04:29 +0100 Subject: [PATCH] Apply changes from suggestion --- src/core/expression/qgsexpression.cpp | 2 +- tests/src/core/testqgsexpression.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/core/expression/qgsexpression.cpp b/src/core/expression/qgsexpression.cpp index fcc3d4a6184e..a97860f2e1e3 100644 --- a/src/core/expression/qgsexpression.cpp +++ b/src/core/expression/qgsexpression.cpp @@ -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::parserErrors() const diff --git a/tests/src/core/testqgsexpression.cpp b/tests/src/core/testqgsexpression.cpp index e92f1b78f94c..9ab68015b3f5 100644 --- a/tests/src/core/testqgsexpression.cpp +++ b/tests/src/core/testqgsexpression.cpp @@ -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() @@ -6012,7 +6012,6 @@ class TestQgsExpression: public QObject } } - }; QGSTEST_MAIN( TestQgsExpression )