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>
This commit is contained in:
Chris Larson 2011-05-06 07:18:44 -07:00 committed by Richard Purdie
parent e121054740
commit a3efbb96f2
1 changed files with 2 additions and 0 deletions

View File

@ -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)