Skip to content

Commit

Permalink
Throw exception when sink cannot be created
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Apr 9, 2018
1 parent 3d9b8bb commit 0e1852c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/processing/qgsalgorithmfilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ QVariantMap QgsFilterAlgorithm::processAlgorithm( const QVariantMap &parameters,
{
output->sink.reset( parameterAsSink( parameters, output->name, context, output->destinationIdentifier, source->fields(), source->wkbType(), source->sourceCrs() ) );
if ( !output->sink )
return QVariantMap();
throw QgsProcessingException( QObject::tr( "Could not create feature sink for output %1." ).arg( output->name ) );
output->expression.prepare( &expressionContext );
}

Expand Down

0 comments on commit 0e1852c

Please sign in to comment.