Skip to content

Commit

Permalink
Merge pull request qgis#56619 from uclaros/fix-53612
Browse files Browse the repository at this point in the history
propagate ept index errors to the provider
  • Loading branch information
rouault authored Mar 3, 2024
2 parents ce3325d + 6a2b1ac commit 71e8fb8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/pointcloud/qgsremoteeptpointcloudindex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ void QgsRemoteEptPointCloudIndex::load( const QString &uri )
{
QgsDebugError( QStringLiteral( "Request failed: " ) + uri );
mIsValid = false;
mError = req.errorMessage();
return;
}

Expand Down
4 changes: 4 additions & 0 deletions src/core/providers/ept/qgseptprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ QgsEptProvider::QgsEptProvider(
profile = std::make_unique< QgsScopedRuntimeProfile >( tr( "Open data source" ), QStringLiteral( "projectload" ) );

loadIndex( );
if ( mIndex && !mIndex->isValid() )
{
appendError( mIndex->error() );
}
}

Qgis::DataProviderFlags QgsEptProvider::flags() const
Expand Down

0 comments on commit 71e8fb8

Please sign in to comment.