Skip to content
Permalink
Browse files

Throw exception when sink cannot be created

  • Loading branch information
m-kuhn committed Apr 9, 2018
1 parent 3d9b8bb commit 0e1852ce34cc14bdacca5a1e46119f072d99a93d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/processing/qgsalgorithmfilter.cpp
@@ -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 );
}

0 comments on commit 0e1852c

Please sign in to comment.
You can’t perform that action at this time.