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

login
register
mail settings
Submitter Richard Purdie
Date Oct. 4, 2013, 1:16 p.m.
Message ID <1380892575.18603.604.camel@ted>
Download mbox | patch
Permalink /patch/59259/
State New
Headers show

Comments

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

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