From a3efbb96f23a222c58f2f4114a75d2f98d7da11f Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Fri, 6 May 2011 07:18:44 -0700 Subject: cooker: don't show a traceback for ParseError (Bitbake rev: cae6bf031dc83ba0439d07584fdbbd4a962408a3) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/lib/bb/cooker.py') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index f4836509ca..a15b81f233 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -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) -- cgit v1.2.3-54-g00ecf