aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
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:33 +0100
commit8d019a77d7c6ded1cff66094bfb9effa38c75c98 (patch)
treea22ffc01123d13aecdc2f2084dba4940cb61442a /bitbake/lib/bb/ui/crumbs/hobeventhandler.py
parenta08139b7acdc528f9f7a20e49402144c89b8eb2b (diff)
downloadopenembedded-core-contrib-8d019a77d7c6ded1cff66094bfb9effa38c75c98.tar.gz
bitbake: hob/hobeventhandler: Describe the runCommand failure exception
[YOCTO #1245] (Bitbake rev: 17f28f09452f70dfb67fce9a397a99deec84dfe5) Signed-off-by: Constantin Musca <constantinx.musca@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui/crumbs/hobeventhandler.py')
-rw-r--r--bitbake/lib/bb/ui/crumbs/hobeventhandler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/crumbs/hobeventhandler.py b/bitbake/lib/bb/ui/crumbs/hobeventhandler.py
index 2ce5b66e72..5d038f45ca 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 = []