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