mirror of
https://git.yoctoproject.org/poky
synced 2026-04-17 18:32:12 +02:00
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:
committed by
Richard Purdie
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)
|
||||
|
||||
Reference in New Issue
Block a user