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

Submitted by Richard Purdie on Oct. 4, 2013, 1:16 p.m.

Details

Message ID 1380892575.18603.604.camel@ted
State New
Headers show

Commit Message

Richard Purdie Oct. 4, 2013, 1:16 p.m.
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>
---

Patch hide | download patch | download mbox

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