summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConstantin Musca <constantinx.musca@intel.com>2012-10-05 15:31:59 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-08 16:23:04 +0100
commit17f28f09452f70dfb67fce9a397a99deec84dfe5 (patch)
tree14849df8126f43858bcf4d2650b6074d38587e76
parent5a8e3baa66f845599a616f080a7efce81ecda631 (diff)
downloadbitbake-17f28f09452f70dfb67fce9a397a99deec84dfe5.tar.gz
hob/hobeventhandler: Describe the runCommand failure exception
[YOCTO #1245] Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/crumbs/hobeventhandler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bb/ui/crumbs/hobeventhandler.py b/lib/bb/ui/crumbs/hobeventhandler.py
index 2ce5b66e7..5d038f45c 100644
--- a/lib/bb/ui/crumbs/hobeventhandler.py
+++ b/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 = []