summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Wagner <david.wagner@intel.com>2015-01-29 16:29:23 +0100
committerDavid Wagner <david.wagner@intel.com>2015-01-29 16:29:23 +0100
commitf39078a6c340431a749ded1f69deb6c646de531c (patch)
tree0c9556096cf6c976616dea3bd160c0f8aa3fe941
parent8526bbf8774b9751904703358d6b5efab5efa530 (diff)
parent2da73a39d90e9345e5dde9afed467b250d1e0f9c (diff)
downloadexternal_parameter-framework-f39078a6c340431a749ded1f69deb6c646de531c.zip
external_parameter-framework-f39078a6c340431a749ded1f69deb6c646de531c.tar.gz
external_parameter-framework-f39078a6c340431a749ded1f69deb6c646de531c.tar.bz2
Merge pull request #21 from krocard/Fix_error_message_in_case_of_unknown_criterion_value
Fix error message in case of unknown criterion value
-rw-r--r--parameter/SelectionCriterionRule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/parameter/SelectionCriterionRule.cpp b/parameter/SelectionCriterionRule.cpp
index b6df7aa..c376bb3 100644
--- a/parameter/SelectionCriterionRule.cpp
+++ b/parameter/SelectionCriterionRule.cpp
@@ -106,7 +106,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;
}