diff options
| author | Kevin Rocard <kevin.rocard@intel.com> | 2015-03-27 20:37:46 +0100 | 
|---|---|---|
| committer | Eric Laurent <elaurent@google.com> | 2015-04-24 13:39:12 -0700 | 
| commit | 0bb508d358ebe25d61122bde9905db6661591ba0 (patch) | |
| tree | a7713260c6bd560353070b2a1d8dcd32683ac607 | |
| parent | 96793735beb92e7d2f430a7572ea10838fcc090e (diff) | |
| download | external_parameter-framework-0bb508d358ebe25d61122bde9905db6661591ba0.zip external_parameter-framework-0bb508d358ebe25d61122bde9905db6661591ba0.tar.gz external_parameter-framework-0bb508d358ebe25d61122bde9905db6661591ba0.tar.bz2  | |
[coverage]Quote user value in error msgs
Some pfw bug induce empty criterion value,
when log it is dificult to see the the empty
value.
Add quotes around values.
before: Error in criterion
After : Error in criterion ""
Signed-off-by: Kevin Rocard <kevin.rocard@intel.com>
| -rwxr-xr-x | tools/coverage/coverage.py | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/coverage/coverage.py b/tools/coverage/coverage.py index 1df02ae..f6f7789 100755 --- a/tools/coverage/coverage.py +++ b/tools/coverage/coverage.py @@ -59,11 +59,11 @@ class ChildError(CustomError):  class ChildNotFoundError(ChildError):      def __str__(self): -        return "Unable to find the child %s in %s" % (self.child, self.parent) +        return 'Unable to find the child "%s" in "%s"' % (self.child, self.parent)  class DuplicatedChildError(ChildError):      def __str__(self): -        return "Add existing child %s in %s." % (self.child, self.parent) +        return 'Add existing child "%s" in "%s".' % (self.child, self.parent)  class Element():      """Root class for all coverage elements""" @@ -109,7 +109,7 @@ class Element():              if child.getName() == childName :                  return child -        self.debug("Child %s not found" % childName, logging.ERROR) +        self.debug('Child "%s" not found' % childName, logging.ERROR)          self.debug("Child list :")  | 
