Skip to contentSkip to conversation

bitbake: bb.fatal: Raise a BBHandledException instead of exiting

PATCH New Richard Purdie 1 participant 1 message May 30, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake: bb.fatal: Raise a BBHandledException instead of exiting

With new bitbake UIs having the cooker exit at 'random' points in the codebase is problematic. This patch raises an exception which matches the situation instead.

bitbake/lib/bb/__init__.py +1 -2
index 1478dd2..84f6ec3 100644
@@ -99,8 +99,7 @@ def error(*args):
 
 def fatal(*args):
     logger.critical(''.join(args))
-    sys.exit(1)
-
+    raise BBHandledException()
 
 def deprecated(func, name=None, advice=""):
     """This is a decorator which can be used to mark functions