diff options
| author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-05-29 18:17:16 +0100 | 
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-30 10:20:25 +0100 | 
| commit | c2852ea835a54ee967fd1e8cf3717844c338d2a1 (patch) | |
| tree | c52d3572d74f975778a3dc1f81ccd22a424b72ea | |
| parent | 429bb2ae80cf73d738f6d79caee0f103f166bef7 (diff) | |
| download | poky-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>
| -rw-r--r-- | bitbake/lib/bb/utils.py | 2 | 
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 | ||
