[bitbake-devel] [PATCH] hob/hobeventhandler: Describe the runCommand failure exception
Constantin Musca
constantinx.musca at intel.com
Fri Oct 5 12:31:59 UTC 2012
[YOCTO #1245]
Signed-off-by: Constantin Musca <constantinx.musca at intel.com>
---
bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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 = []
--
1.7.9.5
More information about the bitbake-devel
mailing list