mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
More informative error message for invalid input pairs when both inputs are valid; closes #844
This commit is contained in:
@@ -416,6 +416,9 @@ void _PropsSImulti(const std::vector<std::string> &Outputs,
|
||||
is_valid_parameter(Name1, key1);
|
||||
is_valid_parameter(Name2, key2);
|
||||
input_pair = generate_update_pair(key1, Prop1, key2, Prop2, v1, v2);
|
||||
if (input_pair == INPUT_PAIR_INVALID){
|
||||
throw ValueError(format("Input pair formed of Name1: %s and Name2: %s is invalid", Name1.c_str(), Name2.c_str()));
|
||||
}
|
||||
}
|
||||
catch (std::exception &e){
|
||||
// Input parameter parsing failed. Stop
|
||||
|
||||
Reference in New Issue
Block a user