From f4434bd16e1e23645e5da1d1b515d63873e06cc7 Mon Sep 17 00:00:00 2001 From: Constantin Musca Date: Fri, 5 Oct 2012 15:31:59 +0300 Subject: bitbake: hob/hobeventhandler: Describe the runCommand failure exception [YOCTO #1245] (Bitbake rev: 17f28f09452f70dfb67fce9a397a99deec84dfe5) Signed-off-by: Constantin Musca Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/hobeventhandler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bitbake') 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 = [] -- cgit v1.2.3-54-g00ecf