Openembedded Bitbake Development
 help / color / mirror / Atom feed
* [PATCH] bin/bitbake: No need to show tracebacks for BBHandledExceptions
@ 2013-10-04 13:16 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-10-04 13:16 UTC (permalink / raw)
  To: bitbake-devel

For BBHandledExceptions, we've already displaced a sensible error to
the user so we don't need to do it again. Just exit with an error
value.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake
index 21a6c81..4d93a35 100755
--- a/bitbake/bin/bitbake
+++ b/bitbake/bin/bitbake
@@ -323,6 +323,8 @@ def main():
 if __name__ == "__main__":
     try:
         ret = main()
+    except bb.BBHandledException:
+        ret = 1
     except Exception:
         ret = 1
         import traceback




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

only message in thread, other threads:[~2013-10-04 13:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-04 13:16 [PATCH] bin/bitbake: No need to show tracebacks for BBHandledExceptions Richard Purdie

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