]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 8 Jun 2011 19:38:25 +0000 (20:38 +0100)
(Bitbake rev: cae6bf031dc83ba0439d07584fdbbd4a962408a3)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/cooker.py

index f4836509ca23a65832c0f891e8a9e52c433ca8bb..a15b81f233630849a51d362b4b0322c51b76de35 100644 (file)
@@ -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)