Skip to contentSkip to conversation

cookerdata: Remove incorrect SystemExit usage

PATCH New Richard Purdie 1 participant 1 message Feb 17, 2023

lore
Share & tools
lore
#0 lore raw

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.

---
 lib/bb/cookerdata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/cookerdata.py +1 -1
index 1658bee93c..d93760c1c1 100644
@@ -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