diff mbox series

[3/3] ast: Improve output when a fragment cannot be found

Message ID 20251121001006.3756451-3-pkj@axis.com
State New
Headers show
Series [1/3] bitbake-layers: Correct the help description for bitbake-config-build | expand

Commit Message

Peter Kjellerstedt Nov. 21, 2025, 12:10 a.m. UTC
Show the list of searched layers as one layer per line rather than just
dumping the contents of the BBLAYERS variable.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
 lib/bb/parse/ast.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/bb/parse/ast.py b/lib/bb/parse/ast.py
index 69e9f166c..e23ef6db3 100644
--- a/lib/bb/parse/ast.py
+++ b/lib/bb/parse/ast.py
@@ -427,7 +427,7 @@  class AddFragmentsNode(AstNode):
                     data.setVarFlag(flagged_var, f, val)
                     data.setVar(flagged_var, None)
             else:
-                bb.fatal("Could not find fragment {} in enabled layers: {}".format(f, layers))
+                bb.fatal("Could not find fragment {} in enabled layers:\n\t{}".format(f, "\n\t".join(layers.split())))
 
 def handleInclude(statements, filename, lineno, m, force):
     statements.append(IncludeNode(filename, lineno, m.group(1), force))