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:
parent
e121054740
commit
a3efbb96f2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue