Skip to contentSkip to conversation

cooker: Add better parse debug

PATCH New Richard Purdie 1 participant 1 message Jul 5, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cooker: Add better parse debug

If parsing ends early and unexpectedly, add some internal values to better understand why/how it failed.

---
 lib/bb/cooker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/cooker.py +1 -1
index 8b959cc942e..d46e1eb62bb 100644
@@ -2291,7 +2291,7 @@ class CookerParser(object):
                 yield result
 
         if not (self.parsed >= self.toparse):
-            raise bb.parse.ParseError("Not all recipes parsed, parser thread killed/died? Exiting.", None)
+            raise bb.parse.ParseError("Not all recipes parsed, parser thread killed/died? (%s %s of %s) Exiting." % (len(self.processes), self.parsed, self.toparse), None)
 
 
     def parse_next(self):