mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 14:02:21 +02:00
cooker: don't show a useless traceback for SyntaxError
Note: we rely on the fact that better_compile has already output information about the exception, so don't do it ourselves. (Bitbake rev: caf21e9fbf3c526c1d7c555d8c76dca8710f9def) 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
97504f2bc8
commit
e121054740
@@ -1227,7 +1227,10 @@ class CookerParser(object):
|
||||
self.shutdown(clean=False)
|
||||
bb.fatal('Error parsing %s: %s' %
|
||||
(exc.recipe, bb.exceptions.to_string(exc.realexception)))
|
||||
except Exception:
|
||||
except SyntaxError as exc:
|
||||
logger.error('Unable to parse %s', exc.recipe)
|
||||
sys.exit(1)
|
||||
except Exception as exc:
|
||||
import traceback
|
||||
etype, value, tb = sys.exc_info()
|
||||
formatted = bb.exceptions.format_extracted(value.traceback, limit=5)
|
||||
|
||||
Reference in New Issue
Block a user