summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-09-11 12:00:05 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-14 09:26:32 +0100
commit6783538884adecd914909a9ab4ca73c27575f3ad (patch)
tree9395a2a146a113addd03c342cbe5fbf007830c79 /lib
parentca2464561d54d59d1146359e41eb08201954fc21 (diff)
downloadbitbake-6783538884adecd914909a9ab4ca73c27575f3ad.tar.gz
hob: format error messages properly
Error messages that use arguments need to be formatted properly, or we don't get the full message. Use a formatter to do this when an error occurs. Partial fix for [YOCTO #2983]. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/ui/crumbs/hobeventhandler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index dac2f74d9..35cbded97 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/lib/bb/ui/crumbs/hobeventhandler.py
@@ -177,7 +177,9 @@ class HobHandler(gobject.GObject):
elif isinstance(event, logging.LogRecord):
if event.levelno >= logging.ERROR:
- self.error_msg += event.msg + '\n'
+ formatter = bb.msg.BBLogFormatter()
+ formatter.format(event)
+ self.error_msg += event.message + '\n'
elif isinstance(event, bb.event.TargetsTreeGenerated):
self.current_phase = "data generation"