Emit Actual Message on Input Failure

This gives more information to the user and hopefully aids them in
resolving the underlying issue.
This commit is contained in:
Bård Skaflestad 2022-05-10 18:02:32 +02:00
parent 02aaec82f7
commit 252d0afe8e

View File

@ -548,7 +548,7 @@ void Opm::readDeck(Opm::Parallel::Communication comm,
if (! parseSuccess) {
if (comm.rank() == 0) {
OpmLog::error("Unrecoverable errors were encountered while loading input");
OpmLog::error(fmt::format("Unrecoverable errors while loading input: {}", failureMessage));
}
#if HAVE_MPI