Skip to content

Commit 235c44e

Browse files
committed
Throw an execption when the algorithm fails
1 parent 1c39074 commit 235c44e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/analysis/processing/qgsalgorithmdissolve.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,8 @@ QVariantMap QgsDissolveAlgorithm::processAlgorithm( const QVariantMap &parameter
218218
if ( ! result.lastError().isEmpty() )
219219
{
220220
feedback->reportError( result.lastError(), true );
221+
if ( result.isEmpty() )
222+
throw QgsProcessingException( QObject::tr( "The algorithm returned no output." ) );
221223
}
222224
return result;
223225
}, 10000 );

0 commit comments

Comments
 (0)