Skip to content
Permalink
Browse files

Sanity Check the existence of the input file

Signed-off-by: Michael Jackson <mike.jackson@bluequartz.net>
  • Loading branch information...
imikejackson committed May 14, 2019
1 parent 83b4201 commit 71327f3a6d2fcc78992e9d26b4b5b18540655ebf
@@ -218,7 +218,7 @@ void DxReader::dataCheck()
}
else if(!fi.exists())
{
QString ss = QObject::tr("The input file does not exist");
QString ss = QObject::tr("The input file does not exist: %1").arg(getInputFile());
setErrorCondition(-388, ss);
}

@@ -138,11 +138,17 @@ void EbsdToH5Ebsd::dataCheck()
setErrorCondition(-12, ss);
}

QFileInfo fi(m_InputPath);
if(m_InputPath.isEmpty())
{
ss = QObject::tr("The Input Directory must be set");
setErrorCondition(-13, ss);
}
else if(!fi.exists())
{
QString ss = QObject::tr("The input directory does not exist: %1").arg(getInputPath());
setErrorCondition(-388, ss);
}

bool hasMissingFiles = false;
const bool stackLowToHigh = true;

0 comments on commit 71327f3

Please sign in to comment.
You can’t perform that action at this time.