#3455 ExportProperty. Display error message for several situations

This commit is contained in:
Bjørn Erik Jensen
2018-10-05 10:58:37 +02:00
parent e01456f40b
commit 677914a338
4 changed files with 16 additions and 9 deletions

View File

@@ -116,7 +116,12 @@ void RicfExportProperty::execute()
auto resultAccessor = findResult(view, timeStepIndex, propertyType, propertyName);
if (!resultAccessor.isNull())
{
RifEclipseInputFileTools::writeResultToTextFile(filePath, eclipseCase->eclipseCaseData(), resultAccessor, eclipseKeyword, m_undefinedValue);
RifEclipseInputFileTools::writeResultToTextFile(filePath, eclipseCase->eclipseCaseData(), resultAccessor, eclipseKeyword, m_undefinedValue, "exportProperty");
}
else
{
RiaLogging::error(QString("exportProperty: Could not find property. Case ID %1, time step %2, property '%3'")
.arg(m_caseId).arg(timeStepIndex).arg(propertyName));
}
if (fullySpecified) break;
@@ -124,8 +129,7 @@ void RicfExportProperty::execute()
if (!anyViewsFound)
{
RiaLogging::error(QString("exportProperty: Could not find a view for case with ID %1").arg(m_caseId()));
return;
RiaLogging::error(QString("exportProperty: Could not find any views for case ID %1").arg(m_caseId()));
}
}