More informative error message for invalid input pairs when both inputs are valid; closes #844

This commit is contained in:
Ian Bell
2015-10-22 18:00:34 +02:00
parent 6419ad9032
commit 74ddd42539

View File

@@ -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