Skip to content

Commit

Permalink
Use warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 14, 2020
1 parent 578813a commit 55e6903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analysis/processing/qgsalgorithmbatchgeocode.cpp
Expand Up @@ -130,7 +130,7 @@ QgsFeatureList QgsBatchGeocodeAlgorithm::processFeature( const QgsFeature &featu
for ( int i = 0; i < mAdditionalFields.count(); ++ i )
attr.append( QVariant() );
f.setAttributes( attr );
feedback->reportError( QObject::tr( "Empty address field for feature %1" ).arg( feature.id() ) );
feedback->pushWarning( QObject::tr( "Empty address field for feature %1" ).arg( feature.id() ) );
return QgsFeatureList() << f;
}

Expand All @@ -142,7 +142,7 @@ QgsFeatureList QgsBatchGeocodeAlgorithm::processFeature( const QgsFeature &featu
for ( int i = 0; i < mAdditionalFields.count(); ++ i )
attr.append( QVariant() );
f.setAttributes( attr );
feedback->reportError( QObject::tr( "No result for %1" ).arg( address ) );
feedback->pushWarning( QObject::tr( "No result for %1" ).arg( address ) );
return QgsFeatureList() << f;
}

Expand Down

0 comments on commit 55e6903

Please sign in to comment.