bitbake: hob/hobeventhandler: Describe the runCommand failure exception
authorConstantin Musca <constantinx.musca@intel.com>
Fri, 5 Oct 2012 12:31:59 +0000 (15:31 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 8 Oct 2012 15:23:33 +0000 (16:23 +0100)
[YOCTO #1245]

(Bitbake rev: 17f28f09452f70dfb67fce9a397a99deec84dfe5)

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/hobeventhandler.py

index 2ce5b66..5d038f4 100644 (file)
@@ -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 = []