From cae6bf031dc83ba0439d07584fdbbd4a962408a3 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 Signed-off-by: Chris Larson --- lib/bb/cooker.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/bb') diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 01e6c160b..5d2f2a88e 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1127,6 +1127,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 1.2.3-korg