summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 350b00b9ae..5026bf740f 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -108,13 +108,9 @@ class HobHandler(gobject.GObject):
108 108
109 def runCommand(self, commandline): 109 def runCommand(self, commandline):
110 try: 110 try:
111 result = self.server.runCommand(commandline) 111 result, error = self.server.runCommand(commandline)
112 result_str = str(result) 112 if error:
113 if (result_str.startswith("Busy (") or 113 raise Exception("Error running command '%s': %s" % (commandline, error))
114 result_str == "No such command"):
115 raise Exception('%s has failed with output "%s". ' %
116 (str(commandline), result_str) +
117 "We recommend that you restart Hob.")
118 return result 114 return result
119 except Exception as e: 115 except Exception as e:
120 self.commands_async = [] 116 self.commands_async = []