summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-04-20 15:56:20 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-02 15:41:34 +0100
commit8bc7ebb4aece51cc4e4649449afa482a51580147 (patch)
tree78a4edcb36ea58968d3d956a9c3ac2c716271f8f /bitbake/lib/bb/data.py
parent1e7a03cb580eb722a85297d6ffcbf55716e938d5 (diff)
downloadpoky-8bc7ebb4aece51cc4e4649449afa482a51580147.tar.gz
Enhance the expansion exception message
(Bitbake rev: 1cc11164a85a5b30d6b9184cb5a8f7f7ac1aaff2) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r--bitbake/lib/bb/data.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 2d04b010cd..96ed6e1e41 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -182,13 +182,10 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False):
182 if all: 182 if all:
183 oval = getVar(var, d, 0) 183 oval = getVar(var, d, 0)
184 val = getVar(var, d, 1) 184 val = getVar(var, d, 1)
185 except KeyboardInterrupt: 185 except (KeyboardInterrupt, bb.build.FuncFailed):
186 raise 186 raise
187 except: 187 except Exception, exc:
188 excname = str(sys.exc_info()[0]) 188 o.write('# expansion of %s threw %s: %s\n' % (var, exc.__class__.__name__, str(exc)))
189 if excname == "bb.build.FuncFailed":
190 raise
191 o.write('# expansion of %s threw %s\n' % (var, excname))
192 return 0 189 return 0
193 190
194 if all: 191 if all: