From patchwork Fri Oct 5 12:31:59 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [bitbake-devel] hob/hobeventhandler: Describe the runCommand failure exception Date: Fri, 05 Oct 2012 12:31:59 -0000 From: Constantin Musca X-Patchwork-Id: 37819 Message-Id: <1349440319-23916-1-git-send-email-constantinx.musca@intel.com> To: bitbake-devel@lists.openembedded.org Cc: Constantin Musca [YOCTO #1245] Signed-off-by: Constantin Musca --- 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 = []