[bitbake-devel] [PATCH] lib/bb/data.py: improve output for expansion errors

Richard Purdie richard.purdie at linuxfoundation.org
Thu Sep 27 15:42:23 UTC 2012


On Tue, 2012-09-25 at 15:17 +0100, Paul Eggleton wrote:
> Instead of logging the function/variable separately as a NOTE when
> failing to expand, re-raise ExpansionError with more contextual
> information. This means that the full details are reported in Hob as
> well as actually reporting the original error message in any UI where
> we previously did not. For example, we used to get this with tab/space
> indentation issues in a python function:
> 
> NOTE: Error expanding variable populate_packages
> ERROR: Unable to parse /path/to/recipename.bb
> 
> Now, we will get this:
> 
> ERROR: ExpansionError during parsing /path/to/recipename.bb: Failure
>  expanding variable populate_packages: IndentationError: unindent does
>  not match any outer indentation level (<string>, line 4)
> 
> Fixes [YOCTO #3162].
> 
> Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
> ---
>  bitbake/lib/bb/data.py       |    5 ++---
>  bitbake/lib/bb/data_smart.py |    5 ++++-
>  2 files changed, 6 insertions(+), 4 deletions(-)

Merged to master, thanks.

Richard





More information about the bitbake-devel mailing list