Skip to content

Commit f8e37aa

Browse files
committedJul 8, 2017
Fix some processing algorithm exception handling
1 parent e2c84f1 commit f8e37aa

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/core/processing/qgsnativealgorithms.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,8 +1035,7 @@ QVariantMap QgsExtractByAttributeAlgorithm::processAlgorithm( const QVariantMap
10351035
QgsExpression expression( expr );
10361036
if ( expression.hasParserError() )
10371037
{
1038-
// raise GeoAlgorithmExecutionException(expression.parserErrorString())
1039-
return QVariantMap();
1038+
throw QgsProcessingException( expression.parserErrorString() );
10401039
}
10411040

10421041
QgsExpressionContext expressionContext = createExpressionContext( parameters, context );

0 commit comments

Comments
 (0)
Please sign in to comment.