summaryrefslogtreecommitdiffstats
path: root/lib/bb
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-05-06 07:18:44 -0700
committerChris Larson <chris_larson@mentor.com>2011-05-16 12:39:42 -0700
commitcae6bf031dc83ba0439d07584fdbbd4a962408a3 (patch)
tree3e2f8548eeb3c7d4bc5d1ff5914c4af747170909 /lib/bb
parentcaf21e9fbf3c526c1d7c555d8c76dca8710f9def (diff)
downloadbitbake-cae6bf031dc83ba0439d07584fdbbd4a962408a3.tar.gz
cooker: don't show a traceback for ParseError
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb')
-rw-r--r--lib/bb/cooker.py2
1 files changed, 2 insertions, 0 deletions
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)