diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-05-06 07:18:44 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-08 20:38:25 +0100 |
commit | a3efbb96f23a222c58f2f4114a75d2f98d7da11f (patch) | |
tree | 4ce27ee6526ef4367f85c8eb0e0d37b43784d568 /bitbake/lib | |
parent | e12105474017262d176dbaaecdc3f90f155aa8df (diff) | |
download | ast2050-yocto-poky-a3efbb96f23a222c58f2f4114a75d2f98d7da11f.zip ast2050-yocto-poky-a3efbb96f23a222c58f2f4114a75d2f98d7da11f.tar.gz |
cooker: don't show a traceback for ParseError
(Bitbake rev: cae6bf031dc83ba0439d07584fdbbd4a962408a3)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/cooker.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index f483650..a15b81f 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -1227,6 +1227,8 @@ class CookerParser(object): self.shutdown(clean=False) bb.fatal('Error parsing %s: %s' % (exc.recipe, bb.exceptions.to_string(exc.realexception))) + except bb.parse.ParseError as exc: + bb.fatal(str(exc)) except SyntaxError as exc: logger.error('Unable to parse %s', exc.recipe) sys.exit(1) |