diff --git a/include/cantera/thermo/Phase.h b/include/cantera/thermo/Phase.h index ca8d244e0..f2637f247 100644 --- a/include/cantera/thermo/Phase.h +++ b/include/cantera/thermo/Phase.h @@ -624,7 +624,7 @@ public: m_dens = density_; } else { throw CanteraError("Phase::setDensity()", - "density must be positive"); + "density must be positive. density = {}", density_); } } @@ -639,7 +639,7 @@ public: m_temp = temp; } else { throw CanteraError("Phase::setTemperature", - "temperature must be positive"); + "temperature must be positive. T = {}", temp); } } //@}