summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/cooker.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 293ad355b8..f4836509ca 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1227,7 +1227,10 @@ class CookerParser(object):
1227 self.shutdown(clean=False) 1227 self.shutdown(clean=False)
1228 bb.fatal('Error parsing %s: %s' % 1228 bb.fatal('Error parsing %s: %s' %
1229 (exc.recipe, bb.exceptions.to_string(exc.realexception))) 1229 (exc.recipe, bb.exceptions.to_string(exc.realexception)))
1230 except Exception: 1230 except SyntaxError as exc:
1231 logger.error('Unable to parse %s', exc.recipe)
1232 sys.exit(1)
1233 except Exception as exc:
1231 import traceback 1234 import traceback
1232 etype, value, tb = sys.exc_info() 1235 etype, value, tb = sys.exc_info()
1233 formatted = bb.exceptions.format_extracted(value.traceback, limit=5) 1236 formatted = bb.exceptions.format_extracted(value.traceback, limit=5)