Skip to content
Permalink
Browse files

[processing] Fix error reporting in package layers algorithm

  • Loading branch information
nyalldawson committed May 14, 2019
1 parent f021831 commit 95f8bfb8afb67199f9cd55782f9441e673bb1733
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/analysis/processing/qgsalgorithmpackage.cpp
@@ -172,9 +172,9 @@ bool QgsPackageAlgorithm::packageVectorLayer( QgsVectorLayer *layer, const QStri
options.feedback = feedback;

QString error;
if ( QgsVectorFileWriter::writeAsVectorFormat( layer, path, options, &error ) != QgsVectorFileWriter::NoError )
if ( QgsVectorFileWriter::writeAsVectorFormat( layer, path, options, nullptr, &error ) != QgsVectorFileWriter::NoError )
{
feedback->pushDebugInfo( QObject::tr( "Packaging layer failed: %1" ).arg( error ) );
feedback->reportError( QObject::tr( "Packaging layer failed: %1" ).arg( error ) );
return false;
}
else

0 comments on commit 95f8bfb

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