mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 01:12:11 -05:00
#3405 Properly handle the failure to create the export folder for completions export.
This commit is contained in:
1 parent
5ab00a3e25
commit
456903f2fa
1 file changed
+6
-1
+6
-1
@@ -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