Skip to content

Commit

Permalink
Revert "Fix expression error string"
Browse files Browse the repository at this point in the history
This reverts commit 46fc568.
The change was not backported to 3.40
  • Loading branch information
DelazJ committed Nov 30, 2024
1 parent 46fc568 commit eca54a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pyqgis_developer_cookbook/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The following example shows how to check if a given expression can be parsed cor
exp = QgsExpression('1 + 1 = ')
assert(exp.hasParserError())

assert(exp.parserErrorString() == '\nIncomplete expression. You might not have finished the full expression.')
assert(exp.parserErrorString() == '\nsyntax error, unexpected end of file')

.. index:: Expressions; Evaluating

Expand Down

0 comments on commit eca54a3

Please sign in to comment.