Skip to content
Permalink
Browse files

Throw an execption when the algorithm fails

  • Loading branch information
elpaso committed Nov 23, 2018
1 parent 1c39074 commit 235c44e403d4b14d22f74f315960add120746a44
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/analysis/processing/qgsalgorithmdissolve.cpp
@@ -218,6 +218,8 @@ QVariantMap QgsDissolveAlgorithm::processAlgorithm( const QVariantMap &parameter
if ( ! result.lastError().isEmpty() )
{
feedback->reportError( result.lastError(), true );
if ( result.isEmpty() )
throw QgsProcessingException( QObject::tr( "The algorithm returned no output." ) );
}
return result;
}, 10000 );

0 comments on commit 235c44e

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