From: Chris Larson Date: Fri, 6 May 2011 14:18:44 +0000 (-0700) Subject: cooker: don't show a traceback for ParseError X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3efbb96f23a222c58f2f4114a75d2f98d7da11f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cooker: don't show a traceback for ParseError (Bitbake rev: cae6bf031dc83ba0439d07584fdbbd4a962408a3) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index f4836509ca2..a15b81f2336 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)