#7893 Make accessor warning clearer in Well Log Track region annotations

This commit is contained in:
Kristian Bendiksen 2021-08-27 10:26:23 +02:00
parent 9e1ef0e7e0
commit 4be9714368

View File

@ -2678,7 +2678,13 @@ void RimWellLogTrack::updateResultPropertyNamesOnPlot()
RigResultAccessorFactory::createFromResultDefinition( eclipseCase->eclipseCaseData(), 0, m_timeStep, m_resultDefinition );
if ( !resultAccessor.notNull() )
{
RiaLogging::error( "Unable to get result accessor" );
QString resultTypeStr = caf::AppEnum<RiaDefines::ResultCatType>( m_resultDefinition->resultType() ).uiText();
RiaLogging::error(
QString( "Unable to find result for region annotation for '%1' track. Tried '%2' (%3) on case: '%4'" )
.arg( m_description() )
.arg( m_resultDefinition->resultVariable() )
.arg( resultTypeStr )
.arg( eclipseCase->caseUserDescription() ) );
return;
}