Skip to content
Permalink
Browse files

Add error reason when unique field discovery fails

  • Loading branch information
m-kuhn authored and nyalldawson committed Aug 18, 2020
1 parent 60ae055 commit 6a77302fb83f266045a0861afa7c3f3438113bc1
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/providers/ogr/qgsogrprovider.cpp
@@ -1125,7 +1125,7 @@ void QgsOgrProvider::loadFields()
uniqueFieldNames = QgsSqliteUtils::uniqueFields( dsPtr.get(), mOgrLayer->name(), errMsg );
if ( ! errMsg.isEmpty() )
{
QgsMessageLog::logMessage( tr( "GPKG error searching for unique constraints on fields for table %1" ).arg( QString( mOgrLayer->name() ) ), tr( "OGR" ) );
QgsMessageLog::logMessage( tr( "GPKG error searching for unique constraints on fields for table %1. (%2)" ).arg( QString( mOgrLayer->name() ), errMsg ), tr( "OGR" ) );
}
}
}

0 comments on commit 6a77302

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