bitbake: utils: avoid printing traceback on ExpansionError during parsing

If an ExpansionError occurs during better_exec() we should just raise it
instead of printing the traceback, so that recipe errors (such as broken
URLs in SRC_URI) are more easily comprehensible.

(Bitbake rev: 5b0da8932c318813138c113d2bb20498145dbd42)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Paul Eggleton 2014-05-29 18:17:16 +01:00 committed by Richard Purdie
parent 429bb2ae80
commit c2852ea835
1 changed files with 2 additions and 0 deletions

View File

@ -357,6 +357,8 @@ def better_exec(code, context, text = None, realfile = "<code>"):
except bb.BBHandledException:
# Error already shown so passthrough
raise
except bb.data_smart.ExpansionError:
raise
except Exception as e:
(t, value, tb) = sys.exc_info()