]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
cooker: don't show a traceback for ParseError
authorChris Larson <chris_larson@mentor.com>
Fri, 6 May 2011 14:18:44 +0000 (07:18 -0700)
committerChris Larson <chris_larson@mentor.com>
Mon, 16 May 2011 19:39:42 +0000 (12:39 -0700)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
lib/bb/cooker.py

index 01e6c160b6058b587e0bc3fadd0712ac92e6c6ed..5d2f2a88e684e4451c06571769f5008b4055a2b2 100644 (file)
@@ -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)