Skip to contentSkip to conversation

hob/hobeventhandler: Describe the runCommand failure exception

PATCH New Constantin Musca 1 participant 1 message Oct 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hob/hobeventhandler: Describe the runCommand failure exception

[YOCTO #1245]

---
 bitbake/lib/bb/ui/crumbs/hobeventhandler.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
bitbake/lib/bb/ui/crumbs/hobeventhandler.py +3 -1
index 2ce5b66..5d038f4 100644
@@ -105,7 +105,9 @@ class HobHandler(gobject.GObject):
             result_str = str(result)
             if (result_str.startswith("Busy (") or
                     result_str == "No such command"):
-                raise Exception(result_str)
+                raise Exception('%s has failed with output "%s". ' %
+                        (str(commandline), result_str) +
+                        "We recommend that you restart Hob.")
             return result
         except Exception as e:
             self.commands_async = []
Signature · 1 line
1.7.9.5