summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/cookerdata.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py
index 0ca87a094e..57fc6bb50e 100644
--- a/bitbake/lib/bb/cookerdata.py
+++ b/bitbake/lib/bb/cookerdata.py
@@ -173,9 +173,12 @@ def catch_parse_error(func):
173 def wrapped(fn, *args): 173 def wrapped(fn, *args):
174 try: 174 try:
175 return func(fn, *args) 175 return func(fn, *args)
176 except (IOError, bb.parse.ParseError, bb.data_smart.ExpansionError) as exc: 176 except IOError as exc:
177 import traceback 177 import traceback
178 parselog.critical( traceback.format_exc()) 178 parselog.critical(traceback.format_exc())
179 parselog.critical("Unable to parse %s: %s" % (fn, exc))
180 sys.exit(1)
181 except (bb.parse.ParseError, bb.data_smart.ExpansionError) as exc:
179 parselog.critical("Unable to parse %s: %s" % (fn, exc)) 182 parselog.critical("Unable to parse %s: %s" % (fn, exc))
180 sys.exit(1) 183 sys.exit(1)
181 return wrapped 184 return wrapped