mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
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>
This commit is contained in:
@@ -1661,6 +1661,11 @@ class CookerParser(object):
|
|||||||
except StopIteration:
|
except StopIteration:
|
||||||
self.shutdown()
|
self.shutdown()
|
||||||
return False
|
return False
|
||||||
|
except bb.BBHandledException as exc:
|
||||||
|
self.error += 1
|
||||||
|
logger.error('Failed to parse recipe: %s' % exc.recipe)
|
||||||
|
self.shutdown(clean=False)
|
||||||
|
return False
|
||||||
except ParsingFailure as exc:
|
except ParsingFailure as exc:
|
||||||
self.error += 1
|
self.error += 1
|
||||||
logger.error('Unable to parse %s: %s' %
|
logger.error('Unable to parse %s: %s' %
|
||||||
|
|||||||
Reference in New Issue
Block a user