Skip to contentSkip to conversation

bin/bitbake: No need to show tracebacks for BBHandledExceptions

PATCH New Richard Purdie 1 participant 1 message Oct 4, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bin/bitbake: No need to show tracebacks for BBHandledExceptions

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.

---

bitbake/bin/bitbake +2 -0
index 21a6c81..4d93a35 100755
@@ -323,6 +323,8 @@ def main():
 if __name__ == "__main__":
     try:
         ret = main()
+    except bb.BBHandledException:
+        ret = 1
     except Exception:
         ret = 1
         import traceback