bitbake: hob: report event handler failures
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 19 Sep 2012 10:25:42 +0000 (11:25 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Sep 2012 10:48:39 +0000 (11:48 +0100)
commit92b063acc5a747f42dce8856e35cc2d05c297205
treede2138d0cc036b59b5a76e95c068995db402135e
parent8658b1fbcf7e0d0d8773fdae98ecc36aff413846
bitbake: hob: report event handler failures

If an event handler failed we were not recieving an error message -
parsing just "froze" at 99%. This is because we were expecting a
CommandFailure event and this never happened in the case of
RequestPackageInfo which is where the failure was occurring.

This also required tweaking the error formatting slightly, taking the
return value of the format function rather than the message property
since the latter only seems to contain the first line without the
traceback in the case of event handler failure. Other error cases were
tested and their message formatting is unaffected by this change.

Final part of the fix for [YOCTO #2651].

(Bitbake rev: 5bab81b124087d63d6eb62a861e1241714fcd483)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/hobeventhandler.py