Make error message from newSpeciesThermoInterpType more informative

This commit is contained in:
Ray Speth 2017-01-27 16:04:05 -05:00
parent 2678b57d58
commit 5fcbfde40e

View file

@ -397,7 +397,8 @@ SpeciesThermoInterpType* newSpeciesThermoInterpType(const XML_Node& thermo)
for (size_t i = 1; i < tp.size(); i++) {
if (!ba::iequals(tp[i]->name(), thermoType)) {
throw CanteraError("newSpeciesThermoInterpType",
"Encountered unsupported mixed species thermo parameterizations");
"Encountered unsupported mixed species thermo "
"parameterizations, '{}' and '{}'", tp[i]->name(), thermoType);
}
}
if ((tp.size() > 2 && thermoType != "nasa9") ||