mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-10 15:05:35 -06:00
Using std::exception
This commit is contained in:
parent
2294983759
commit
0acb148ba7
@ -586,7 +586,7 @@ namespace Opm {
|
||||
|
||||
try {
|
||||
well->wellTesting(ebosSimulator_, simulationTime, this->wellState(), this->groupState(), wellTestState(), deferred_logger);
|
||||
} catch (std::runtime_error& e) {
|
||||
} catch (std::exception& e) {
|
||||
const std::string msg = fmt::format("Exception during testing of well: {}. The well will not open.\n Exception message: {}", wellEcl.name(), e.what());
|
||||
deferred_logger.warning("WELL_TESTING_FAILED", msg);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user