summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-05-06 07:18:44 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-08 20:38:25 +0100
commita3efbb96f23a222c58f2f4114a75d2f98d7da11f (patch)
tree4ce27ee6526ef4367f85c8eb0e0d37b43784d568 /bitbake
parente12105474017262d176dbaaecdc3f90f155aa8df (diff)
downloadpoky-a3efbb96f23a222c58f2f4114a75d2f98d7da11f.tar.gz
cooker: don't show a traceback for ParseError
(Bitbake rev: cae6bf031dc83ba0439d07584fdbbd4a962408a3) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/cooker.py2
1 files changed, 2 insertions, 0 deletions
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):
1227 self.shutdown(clean=False) 1227 self.shutdown(clean=False)
1228 bb.fatal('Error parsing %s: %s' % 1228 bb.fatal('Error parsing %s: %s' %
1229 (exc.recipe, bb.exceptions.to_string(exc.realexception))) 1229 (exc.recipe, bb.exceptions.to_string(exc.realexception)))
1230 except bb.parse.ParseError as exc:
1231 bb.fatal(str(exc))
1230 except SyntaxError as exc: 1232 except SyntaxError as exc:
1231 logger.error('Unable to parse %s', exc.recipe) 1233 logger.error('Unable to parse %s', exc.recipe)
1232 sys.exit(1) 1234 sys.exit(1)