diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-04 17:33:26 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-05 14:06:52 +0000 |
commit | d49d46533704e8b4404e29abfb5a7383d704c91a (patch) | |
tree | c6e4c87e7944d9ee50ffb2c67528c5cb967351d1 /lib/bb/data.py | |
parent | 9241eb10847634e34c5ff8767ed8c114f66ff6cf (diff) | |
download | bitbake-d49d46533704e8b4404e29abfb5a7383d704c91a.tar.gz |
data: Drop misleading ExpansionError exception
This codepath can be triggered by a python indentation error for example.
Showing it as an ExpansionError is misleading.
Change the code to add a warning about where the failure came from (in
particular giving the variable key name that triggered it) but raise the
proper exception.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data.py')
-rw-r--r-- | lib/bb/data.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py index dc8d02e01..fac57da71 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -406,7 +406,8 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, d): deps |= set((vardeps or "").split()) deps -= set(varflags.get("vardepsexclude", "").split()) except Exception as e: - raise bb.data_smart.ExpansionError(key, None, e) + bb.warn("Exception during build_dependencies for %s" % key) + raise return deps, value #bb.note("Variable %s references %s and calls %s" % (key, str(deps), str(execs))) #d.setVarFlag(key, "vardeps", deps) |