Skip to content
Permalink
Browse files
Offer a slightly more helpful error string when querying layers fails
  • Loading branch information
nirvn authored and nyalldawson committed Sep 8, 2021
1 parent b340ae7 commit eabc0a701b6d02a94f92d312674719af87cb22c6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/providers/ogr/qgsogrproviderutils.cpp
@@ -1477,7 +1477,7 @@ QgsOgrLayerUniquePtr QgsOgrProviderUtils::getLayer( const QString &dsName,
GDALDatasetH hDS = OpenHelper( dsName, updateMode, options );
if ( !hDS )
{
errCause = QObject::tr( "Cannot open %1." ).arg( dsName );
errCause = QObject::tr( "Cannot open %1 (%2)." ).arg( dsName, QString::fromUtf8( CPLGetLastErrorMsg() ) );
return nullptr;
}

0 comments on commit eabc0a7

Please sign in to comment.