summaryrefslogtreecommitdiffstats
path: root/lib/bb/__init__.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-30 15:57:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-31 00:03:57 +0100
commit181a9735d02ebd517378558e909efc8b1b118973 (patch)
treeaafbf72e7fa2354985cfd6caab4f6ced7c43c6bd /lib/bb/__init__.py
parent98d9e6e0f514a7cb7da1d99bf4bd5602b89426d6 (diff)
downloadbitbake-181a9735d02ebd517378558e909efc8b1b118973.tar.gz
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/__init__.py')
-rw-r--r--lib/bb/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py
index 1478dd23b..84f6ec3f3 100644
--- a/lib/bb/__init__.py
+++ b/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