mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-02 13:59:12 -06:00
WellInterface: use {fmt} to format error messages
This commit is contained in:
parent
a25479e5c2
commit
a020a993b5
@ -29,6 +29,8 @@
|
||||
|
||||
#include <dune/common/version.hh>
|
||||
|
||||
#include <fmt/format.h>
|
||||
|
||||
namespace Opm
|
||||
{
|
||||
|
||||
@ -941,7 +943,9 @@ namespace Opm
|
||||
}
|
||||
case Well::ProducerCMode::CRAT:
|
||||
{
|
||||
OPM_DEFLOG_THROW(std::runtime_error, "CRAT control not supported " << this->name(), deferred_logger);
|
||||
OPM_DEFLOG_THROW(std::runtime_error,
|
||||
fmt::format("CRAT control not supported, well {}", this->name()),
|
||||
deferred_logger);
|
||||
}
|
||||
case Well::ProducerCMode::RESV:
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user