From 0bb508d358ebe25d61122bde9905db6661591ba0 Mon Sep 17 00:00:00 2001 From: Kevin Rocard Date: Fri, 27 Mar 2015 20:37:46 +0100 Subject: [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 --- tools/coverage/coverage.py | 6 +++--- 1 file 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 :") -- cgit v1.1