Ensemble import. Do not show warning dialog if there are no errors

This commit is contained in:
Bjørn Erik Jensen committed 2018-07-03 15:20:14 +02:00
1 parent 228b4a5f85
commit 2dd8744743
1 file changed
+5 -4
@@ -87,13 +87,14 @@ bool RicImportEnsembleFeature::validateEnsembleCases(std::vector<RimSummaryCase*
}
}
errors.append("\n");
errors.append("No parameters file (parameters.txt or runspecification.xml) was found in \n");
errors.append("the searched folders. ResInsight searches the home folder of the summary \n");
errors.append("case file and the three folder levels above that.\n");
if (!errors.isEmpty())
{
errors.append("\n");
errors.append("No parameters file (parameters.txt or runspecification.xml) was found in \n");
errors.append("the searched folders. ResInsight searches the home folder of the summary \n");
errors.append("case file and the three folder levels above that.\n");
throw errors;
}
return true;