#3405 Properly handle the failure to create the export folder for completions export.

This commit is contained in:
Gaute Lindkvist committed 2018-09-26 14:30:50 +02:00
1 parent 5ab00a3e25
commit 456903f2fa
1 file changed
+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");