[bitbake-devel] [PATCH] bin/bitbake: No need to show tracebacks for BBHandledExceptions

Richard Purdie richard.purdie at linuxfoundation.org
Fri Oct 4 13:16:15 UTC 2013


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 at 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





More information about the bitbake-devel mailing list