diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-22 22:40:14 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-23 09:22:43 +0100 |
commit | ae71aa0fbb4a1a05013983cb1f1d0d79f9f5fd2c (patch) | |
tree | cd2a2a1e54083e5a07922df02c134a6626ce9846 | |
parent | 4f3d48653aecd0bcb5cf3db2bdd7770235947206 (diff) | |
download | poky-ae71aa0fbb4a1a05013983cb1f1d0d79f9f5fd2c.tar.gz |
bitbake: cooker: Add explict handling of BBHandledException for parsing failures
This removes some unnecessary tracebacks
(Bitbake rev: db0ff7b4d47fce8322dd2350a2b1a6f60ef61d25)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/cooker.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index cecbed9c21..1b3bb84018 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1661,6 +1661,11 @@ class CookerParser(object): | |||
1661 | except StopIteration: | 1661 | except StopIteration: |
1662 | self.shutdown() | 1662 | self.shutdown() |
1663 | return False | 1663 | return False |
1664 | except bb.BBHandledException as exc: | ||
1665 | self.error += 1 | ||
1666 | logger.error('Failed to parse recipe: %s' % exc.recipe) | ||
1667 | self.shutdown(clean=False) | ||
1668 | return False | ||
1664 | except ParsingFailure as exc: | 1669 | except ParsingFailure as exc: |
1665 | self.error += 1 | 1670 | self.error += 1 |
1666 | logger.error('Unable to parse %s: %s' % | 1671 | logger.error('Unable to parse %s: %s' % |