cookerdata: Remove incorrect SystemExit usage
PATCH 1/1 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 <[email protected]>
--- lib/bb/cookerdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/cookerdata.py +1 -1
@@ -473,7 +473,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()))
Signature · 1 line
2.37.2