diff --git a/ebos/eclgenericoutputblackoilmodule.cc b/ebos/eclgenericoutputblackoilmodule.cc index 2cae2709d..923aff361 100644 --- a/ebos/eclgenericoutputblackoilmodule.cc +++ b/ebos/eclgenericoutputblackoilmodule.cc @@ -37,6 +37,7 @@ #include #include +#include #include #include #include @@ -58,7 +59,7 @@ std::string EclString(Opm::Inplace::Phase phase) { case Opm::Inplace::Phase::OilResVolume: return "OIPR"; case Opm::Inplace::Phase::GasResVolume: return "GIPR"; case Opm::Inplace::Phase::SALT: return "SIP"; - default: throw std::logic_error("Phase not recognized"); + default: throw std::logic_error(fmt::format("Phase enum with integer value: {} not recognized", static_cast(phase))); } }