#1304 Avoid crash, and send a message to user if the flow diag solver throws

This commit is contained in:
Jacob Støren 2017-03-10 11:46:50 +01:00
parent 8b3029c3a3
commit 2f17096cde

View File

@ -287,7 +287,8 @@ RigFlowDiagTimeStepResult RigFlowDiagSolverInterface::calculate(size_t timeStepI
}
catch (const std::exception& e)
{
CVF_ASSERT(false);
QMessageBox::critical(nullptr, "ResInsight", "Flow Diagnostics: " + QString(e.what()));
return result;
}
}
@ -316,7 +317,8 @@ RigFlowDiagTimeStepResult RigFlowDiagSolverInterface::calculate(size_t timeStepI
}
catch (const std::exception& e)
{
CVF_ASSERT(false);
QMessageBox::critical(nullptr, "ResInsight", "Flow Diagnostics: " + QString(e.what()));
return result;
}
}