diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-03-10 21:45:17 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-03-11 06:09:24 -1000 |
commit | 0537c1f2d7eba0b69e9ae3b8d7c358aaf89e3321 (patch) | |
tree | ec817229f2bd5d3da3be213130128653d2a9f1a0 | |
parent | 6e92d34520bdee8b0cc3ad42e3f71a9e091e78cb (diff) | |
download | bitbake-contrib-0537c1f2d7eba0b69e9ae3b8d7c358aaf89e3321.tar.gz |
cookerdata: Remove incorrect SystemExit usage
Calling SystemExit doesn't work well with server/client usage since the string
isn't printed to the right place. Use bb.fatal() instead which prints the right
log output and raises and handled exception which then shows correctly on the
UI.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | lib/bb/cookerdata.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py index 8a354fed7..3555585c8 100644 --- a/lib/bb/cookerdata.py +++ b/lib/bb/cookerdata.py @@ -436,7 +436,7 @@ class CookerDataBuilder(object): msg += (" and bitbake did not find a conf/bblayers.conf file in" " the expected location.\nMaybe you accidentally" " invoked bitbake from the wrong directory?") - raise SystemExit(msg) + bb.fatal(msg) if not data.getVar("TOPDIR"): data.setVar("TOPDIR", os.path.abspath(os.getcwd())) |