summaryrefslogtreecommitdiffstats
path: root/lib/bb/ui/crumbs
diff options
context:
space:
mode:
authorIrina Patru <irina.patru@intel.com>2014-01-21 17:59:35 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-27 21:43:17 +0000
commit24543ff6b45771712d624541ae35738d7d98f33c (patch)
tree8ba8e616cda04d3650b671113a5eb97e316a7bc9 /lib/bb/ui/crumbs
parent55f6bee3114e582333a1784caeddb197b9163d02 (diff)
downloadopenembedded-core-contrib-24543ff6b45771712d624541ae35738d7d98f33c.tar.gz
hob: change error_msg for CommandFailed event
When a bb.command.CommandFailed event is received by Hob, the error message is stored inside event.error. This information tells exactly why bitbake failed, so Hob should display it instead of the current composed message. Signed-off-by: Irina Patru <irina.patru@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/ui/crumbs')
-rw-r--r--lib/bb/ui/crumbs/hobeventhandler.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index b12f2d861c..a3bd264fa4 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/lib/bb/ui/crumbs/hobeventhandler.py
@@ -98,7 +98,6 @@ class HobHandler(gobject.GObject):
self.server = server
self.error_msg = ""
- self.lastCommand = ""
self.initcmd = None
self.parsing = False
@@ -113,7 +112,6 @@ class HobHandler(gobject.GObject):
self.generating = False
def runCommand(self, commandline):
- self.lastCommand = commandline[0]
try:
result, error = self.server.runCommand(commandline)
if error:
@@ -252,10 +250,7 @@ class HobHandler(gobject.GObject):
self.current_phase = None
self.run_next_command()
elif isinstance(event, bb.command.CommandFailed):
- if self.error_msg == "":
- self.error_msg = "The command \"" + self.lastCommand
- self.error_msg += "\" was sent to bitbake server but it failed. Please"
- self.error_msg += " check the code executed by this command in bitbake."
+ self.error_msg += event.error
self.commands_async = []
self.display_error()
elif isinstance(event, (bb.event.ParseStarted,