Better error message when UNIFAQ component cannot be found; closes #1202

This commit is contained in:
Ian Bell
2016-08-23 19:19:53 -06:00
parent 970796f6a8
commit 36d749007b

View File

@@ -112,7 +112,7 @@ namespace UNIFAQLibrary{
if (it->name == value ){ return *it; }
}
}
throw CoolProp::ValueError("Could not find component");
throw CoolProp::ValueError(format("Could not find component: %s with identifier: %s", value, identifier));
}
}; /* namespace UNIFAQLibrary */