From 78052ff9c41dee5b6b4c5d20c1d77f5ae79626d8 Mon Sep 17 00:00:00 2001 From: David Wagner Date: Fri, 31 Oct 2014 18:04:33 +0100 Subject: 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 --- parameter/ConfigurableElement.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.1