mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2003 Observed Data : Improve error display
This commit is contained in:
parent
179c15ef5c
commit
82721cb6fa
@ -82,7 +82,7 @@ void RicImportObservedDataFeature::selectObservedDataFileInDialog()
|
||||
{
|
||||
QMessageBox msgBox;
|
||||
msgBox.setIcon(QMessageBox::Warning);
|
||||
msgBox.setText("Errors detected during import");
|
||||
msgBox.setText("Errors detected during import ");
|
||||
msgBox.setDetailedText(aggregatedErrorStrings);
|
||||
msgBox.exec();
|
||||
}
|
||||
|
@ -135,6 +135,13 @@ RimObservedData* RimObservedDataCollection::createAndAddObservedDataFromFileName
|
||||
|
||||
this->updateConnectedEditors();
|
||||
}
|
||||
else
|
||||
{
|
||||
if (errorText)
|
||||
{
|
||||
errorText->append("Not able to import file. Make sure '*.rsm' is used as extension if data is in RMS format.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return observedData;
|
||||
|
Loading…
Reference in New Issue
Block a user