summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2014-05-29 18:17:16 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-30 10:20:25 +0100
commitc2852ea835a54ee967fd1e8cf3717844c338d2a1 (patch)
treec52d3572d74f975778a3dc1f81ccd22a424b72ea /bitbake
parent429bb2ae80cf73d738f6d79caee0f103f166bef7 (diff)
downloadpoky-c2852ea835a54ee967fd1e8cf3717844c338d2a1.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/utils.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 1be1874cbc..ead5f366b0 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -357,6 +357,8 @@ def better_exec(code, context, text = None, realfile = "<code>"):
357 except bb.BBHandledException: 357 except bb.BBHandledException:
358 # Error already shown so passthrough 358 # Error already shown so passthrough
359 raise 359 raise
360 except bb.data_smart.ExpansionError:
361 raise
360 except Exception as e: 362 except Exception as e:
361 (t, value, tb) = sys.exc_info() 363 (t, value, tb) = sys.exc_info()
362 364