Navigation Menu

Skip to content

Commit

Permalink
Throw an execption when the algorithm fails
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 23, 2018
1 parent 1c39074 commit 235c44e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analysis/processing/qgsalgorithmdissolve.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 235c44e

Please sign in to comment.