Patchwork [bitbake-devel] hob/hobeventhandler: Describe the runCommand failure exception

login
register
mail settings
Submitter Constantin Musca
Date Oct. 5, 2012, 12:31 p.m.
Message ID <1349440319-23916-1-git-send-email-constantinx.musca@intel.com>
Download mbox | patch
Permalink /patch/37819/
State New
Headers show

Comments

Constantin Musca - Oct. 5, 2012, 12:31 p.m.
[YOCTO #1245]

Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
---
 bitbake/lib/bb/ui/crumbs/hobeventhandler.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 2ce5b66..5d038f4 100644
--- a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
@@ -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 = []