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 5d038f45ca..82ebc7d2e0 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -101,13 +101,9 @@ class HobHandler(gobject.GObject):
101 101
102 def runCommand(self, commandline): 102 def runCommand(self, commandline):
103 try: 103 try:
104 result = self.server.runCommand(commandline) 104 result, error = self.server.runCommand(commandline)
105 result_str = str(result) 105 if error:
106 if (result_str.startswith("Busy (") or 106 raise Exception("Error running command '%s': %s" % (commandline, error))
107 result_str == "No such command"):
108 raise Exception('%s has failed with output "%s". ' %
109 (str(commandline), result_str) +
110 "We recommend that you restart Hob.")
111 return result 107 return result
112 except Exception as e: 108 except Exception as e:
113 self.commands_async = [] 109 self.commands_async = []