mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 00:49:33 +02:00
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:
committed by
Richard Purdie
parent
429bb2ae80
commit
c2852ea835
@@ -357,6 +357,8 @@ def better_exec(code, context, text = None, realfile = "<code>"):
|
|||||||
except bb.BBHandledException:
|
except bb.BBHandledException:
|
||||||
# Error already shown so passthrough
|
# Error already shown so passthrough
|
||||||
raise
|
raise
|
||||||
|
except bb.data_smart.ExpansionError:
|
||||||
|
raise
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
(t, value, tb) = sys.exc_info()
|
(t, value, tb) = sys.exc_info()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user