Skip to content

Commit 0e1852c

Browse files
committedApr 9, 2018
Throw exception when sink cannot be created
1 parent 3d9b8bb commit 0e1852c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/analysis/processing/qgsalgorithmfilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ QVariantMap QgsFilterAlgorithm::processAlgorithm( const QVariantMap &parameters,
9797
{
9898
output->sink.reset( parameterAsSink( parameters, output->name, context, output->destinationIdentifier, source->fields(), source->wkbType(), source->sourceCrs() ) );
9999
if ( !output->sink )
100-
return QVariantMap();
100+
throw QgsProcessingException( QObject::tr( "Could not create feature sink for output %1." ).arg( output->name ) );
101101
output->expression.prepare( &expressionContext );
102102
}
103103

0 commit comments

Comments
 (0)
Please sign in to comment.