* [PATCH] bitbake: bb.fatal: Raise a BBHandledException instead of exiting
@ 2014-05-30 14:57 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-05-30 14:57 UTC (permalink / raw)
To: bitbake-devel
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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index 1478dd2..84f6ec3 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-05-30 14:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-30 14:57 [PATCH] bitbake: bb.fatal: Raise a BBHandledException instead of exiting Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.