From 2da73a39d90e9345e5dde9afed467b250d1e0f9c Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Wed, 29 Oct 2014 18:48:50 +0100 Subject: Fix error message in case of unknown criterion value When failing to parse a criterion rule, the pfw was outputing: Value error: This did not help to find the root cause. With this patch it would have output: Value error: is not part of criterion Signed-off-by: Kevin Rocard --- parameter/SelectionCriterionRule.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'parameter') diff --git a/parameter/SelectionCriterionRule.cpp b/parameter/SelectionCriterionRule.cpp index 6f350c3..e03e3a0 100644 --- a/parameter/SelectionCriterionRule.cpp +++ b/parameter/SelectionCriterionRule.cpp @@ -105,7 +105,8 @@ bool CSelectionCriterionRule::parse(CRuleParser& ruleParser, string& strError) // Value if (!_pSelectionCriterion->getCriterionType()->getNumericalValue(strValue, _iMatchValue)) { - strError = "Value error: " + strError; + strError = "Value error: \"" + strValue + "\" is not part of criterion \"" + + _pSelectionCriterion->getCriterionName() + "\""; return false; } -- cgit v1.1