diff options
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index b30945c4b0..928b6009aa 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1657,9 +1657,13 @@ class CookerParser(object): | |||
1657 | logger.error('Unable to parse %s: %s' % | 1657 | logger.error('Unable to parse %s: %s' % |
1658 | (exc.recipe, bb.exceptions.to_string(exc.realexception))) | 1658 | (exc.recipe, bb.exceptions.to_string(exc.realexception))) |
1659 | self.shutdown(clean=False) | 1659 | self.shutdown(clean=False) |
1660 | except (bb.parse.ParseError, bb.data_smart.ExpansionError) as exc: | 1660 | except bb.parse.ParseError as exc: |
1661 | logger.error(str(exc)) | 1661 | logger.error(str(exc)) |
1662 | self.shutdown(clean=False) | 1662 | self.shutdown(clean=False) |
1663 | except bb.data_smart.ExpansionError as exc: | ||
1664 | _, value, _ = sys.exc_info() | ||
1665 | logger.error('ExpansionError during parsing %s: %s', value.recipe, str(exc)) | ||
1666 | self.shutdown(clean=False) | ||
1663 | except SyntaxError as exc: | 1667 | except SyntaxError as exc: |
1664 | logger.error('Unable to parse %s', exc.recipe) | 1668 | logger.error('Unable to parse %s', exc.recipe) |
1665 | self.shutdown(clean=False) | 1669 | self.shutdown(clean=False) |