diff options
author | David Wagner <david.wagner@intel.com> | 2014-10-31 18:04:33 +0100 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-10-31 19:07:46 +0100 |
commit | 78052ff9c41dee5b6b4c5d20c1d77f5ae79626d8 (patch) | |
tree | 45062524e9dd1a3c994aa09016b1ffd989f14721 /parameter | |
parent | 61e221838cf44e1dfd767d82c5d899f8a55d1330 (diff) | |
download | external_parameter-framework-78052ff9c41dee5b6b4c5d20c1d77f5ae79626d8.zip external_parameter-framework-78052ff9c41dee5b6b4c5d20c1d77f5ae79626d8.tar.gz external_parameter-framework-78052ff9c41dee5b6b4c5d20c1d77f5ae79626d8.tar.bz2 |
Clarify the "Non accessible element" error
This error happens, among others, when trying to set an element as if it was a
parameter. The error message was not very helpful.
Previous error message:
Non accessible element
New error message:
Can't set /A/b/c because it is not a parameter
Signed-off-by: David Wagner <david.wagner@intel.com>
Diffstat (limited to 'parameter')
-rw-r--r-- | parameter/ConfigurableElement.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/parameter/ConfigurableElement.cpp b/parameter/ConfigurableElement.cpp index c23c7e9..eb66dd8 100644 --- a/parameter/ConfigurableElement.cpp +++ b/parameter/ConfigurableElement.cpp @@ -139,7 +139,7 @@ bool CConfigurableElement::accessValue(CPathNavigator& pathNavigator, std::strin if (!pStrChildName) { - parameterAccessContext.setError("Non accessible element"); + parameterAccessContext.setError((bSet ? "Can't set " : "Can't get ") + pathNavigator.getCurrentPath() + " because it is not a parameter"); return false; } |