diff options
author | Kevin Rocard <kevinx.rocard@intel.com> | 2014-10-29 18:48:50 +0100 |
---|---|---|
committer | Kevin Rocard <kevin.rocard@intel.com> | 2015-01-22 15:33:52 +0100 |
commit | 2da73a39d90e9345e5dde9afed467b250d1e0f9c (patch) | |
tree | 3c9423fae09295b46abc7c77b2efcbe3e1395776 | |
parent | 7bae0ea65ca57317c0d4da24fe6ad8dab7ffb2f0 (diff) | |
download | external_parameter-framework-2da73a39d90e9345e5dde9afed467b250d1e0f9c.zip external_parameter-framework-2da73a39d90e9345e5dde9afed467b250d1e0f9c.tar.gz external_parameter-framework-2da73a39d90e9345e5dde9afed467b250d1e0f9c.tar.bz2 |
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: <Input value> is not part of criterion <Criterion>
Signed-off-by: Kevin Rocard <kevinx.rocard@intel.com>
-rw-r--r-- | parameter/SelectionCriterionRule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |