Improve error handling when trying to access OSDU data

Show more details when support for SSL is missing.

Move connection of signal/slot away from constructor. This makes it possible to use ResInsight even if SSL is not available.
This commit is contained in:
Magne Sjaastad
2024-08-16 16:48:04 +02:00
parent 3f2c669bc4
commit 141484f8a7
6 changed files with 48 additions and 18 deletions

View File

@@ -67,6 +67,11 @@ void RicWellPathsImportOsduFeature::onActionTriggered( bool isChecked )
if ( !oilField ) return;
RiaOsduConnector* osduConnector = app->makeOsduConnector();
if ( !osduConnector )
{
RiaLogging::error( "Failed to create OSDU connector" );
return;
}
RiuWellImportWizard wellImportwizard( osduConnector, RiuMainWindow::instance() );

View File

@@ -62,6 +62,11 @@ void RicImportWellLogOsduFeature::onActionTriggered( bool isChecked )
if ( !oilField->wellPathCollection ) oilField->wellPathCollection = std::make_unique<RimWellPathCollection>();
auto osduConnector = app->makeOsduConnector();
if ( !osduConnector )
{
RiaLogging::error( "Failed to create OSDU connector" );
return;
}
RiuWellLogImportWizard wellLogImportWizard( osduConnector, wellPath->wellboreId(), RiuMainWindow::instance() );