Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Commit f39078a

Browse files
committed
Merge pull request #21 from krocard/Fix_error_message_in_case_of_unknown_criterion_value
Fix error message in case of unknown criterion value
2 parents 8526bbf + 2da73a3 commit f39078a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

parameter/SelectionCriterionRule.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ bool CSelectionCriterionRule::parse(CRuleParser& ruleParser, string& strError)
106106
// Value
107107
if (!_pSelectionCriterion->getCriterionType()->getNumericalValue(strValue, _iMatchValue)) {
108108

109-
strError = "Value error: " + strError;
109+
strError = "Value error: \"" + strValue + "\" is not part of criterion \"" +
110+
_pSelectionCriterion->getCriterionName() + "\"";
110111

111112
return false;
112113
}

0 commit comments

Comments
 (0)