Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH] cooker: Add explict handling of BBHandledException for parsing failures
@ 2012-08-22 21:40 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-08-22 21:40 UTC (permalink / raw)
  To: bitbake-devel

This removes some unnecessary tracebacks

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index c0870b7..b2c9e0b 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1661,6 +1661,11 @@ class CookerParser(object):
         except StopIteration:
             self.shutdown()
             return False
+        except bb.BBHandledException as exc:
+            self.error += 1
+            logger.error('Failed to parse recipe: %s' % exc.recipe)
+            self.shutdown(clean=False)
+            return False
         except ParsingFailure as exc:
             self.error += 1
             logger.error('Unable to parse %s: %s' %





^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-22 21:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-22 21:40 [PATCH] cooker: Add explict handling of BBHandledException for parsing failures Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox