Skip to content

Commit

Permalink
[Thermo] Show values in setDensity / setTemperature exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Jan 7, 2018
1 parent 24940ae commit ebc478f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/cantera/thermo/Phase.h
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ class Phase
m_dens = density_;
} else {
throw CanteraError("Phase::setDensity()",
"density must be positive");
"density must be positive. density = {}", density_);
}
}

Expand All @@ -639,7 +639,7 @@ class Phase
m_temp = temp;
} else {
throw CanteraError("Phase::setTemperature",
"temperature must be positive");
"temperature must be positive. T = {}", temp);
}
}
//@}
Expand Down

0 comments on commit ebc478f

Please sign in to comment.