mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #5765 from atgeirr/refactor-errorguard-dump-downstream
Use formattedErrors() and simplify.
This commit is contained in:
commit
641f094309
@ -617,10 +617,7 @@ void Opm::readDeck(Opm::Parallel::Communication comm,
|
||||
|
||||
if (*errorGuard) { // errors encountered
|
||||
parseSuccess = 0;
|
||||
if (failureMessage.size()) {
|
||||
failureMessage += std::string("\n");
|
||||
}
|
||||
failureMessage += errorGuard->dump();
|
||||
failureMessage += errorGuard->formattedErrors();
|
||||
errorGuard->clear();
|
||||
}
|
||||
|
||||
@ -628,7 +625,7 @@ void Opm::readDeck(Opm::Parallel::Communication comm,
|
||||
|
||||
if (! parseSuccess) {
|
||||
if (comm.rank() == 0) {
|
||||
OpmLog::error(fmt::format("Unrecoverable errors while loading input: {}", failureMessage));
|
||||
OpmLog::error(fmt::format("Unrecoverable errors while loading input:\n{}", failureMessage));
|
||||
}
|
||||
|
||||
#if HAVE_MPI
|
||||
|
Loading…
Reference in New Issue
Block a user