summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cooker.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 8ac88b99a4..7a9b1d58d6 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -965,7 +965,11 @@ class CookerExit(bb.event.Event):
965 965
966def parse_file(task): 966def parse_file(task):
967 filename, appends = task 967 filename, appends = task
968 return True, bb.cache.Cache.parse(filename, appends, parse_file.cfg) 968 try:
969 return True, bb.cache.Cache.parse(filename, appends, parse_file.cfg)
970 except Exception, exc:
971 exc.recipe = filename
972 raise exc
969 973
970class CookerParser(object): 974class CookerParser(object):
971 def __init__(self, cooker, filelist, masked): 975 def __init__(self, cooker, filelist, masked):
@@ -1049,7 +1053,7 @@ class CookerParser(object):
1049 raise 1053 raise
1050 except Exception as exc: 1054 except Exception as exc:
1051 self.shutdown(clean=False) 1055 self.shutdown(clean=False)
1052 sys.exit(1) 1056 bb.fatal('Error parsing %s: %s' % (exc.recipe, exc))
1053 1057
1054 self.current += 1 1058 self.current += 1
1055 self.virtuals += len(result) 1059 self.virtuals += len(result)