mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3405 Properly handle the failure to create the export folder for completions export.
This commit is contained in:
@@ -149,7 +149,12 @@ void RicWellPathExportCompletionDataFeatureImpl::exportCompletions(const std::ve
|
||||
if (prefs->includeFractureDebugInfoFile())
|
||||
{
|
||||
QDir outputDir = QDir(exportSettings.folder);
|
||||
outputDir.mkpath(".");
|
||||
if (!outputDir.mkpath("."))
|
||||
{
|
||||
QString errMsg = QString("Could not create export folder: %1").arg(exportSettings.folder);
|
||||
RiaLogging::error(errMsg);
|
||||
return;
|
||||
}
|
||||
|
||||
QString fractureTransmisibillityExportInformationPath =
|
||||
QDir(exportSettings.folder).absoluteFilePath("FractureTransmissibilityExportInformation");
|
||||
|
||||
Reference in New Issue
Block a user