From 38deca1ab8414f3407db9d44e552dfd747b2bedd Mon Sep 17 00:00:00 2001 From: Florian Wilhelm Date: Wed, 10 Dec 2025 15:25:32 +0100 Subject: [PATCH] Improve error message for platform count check Adding the actual number of platforms might make it easier to spot the mistake, i.e. if it is 0 or 2 might be important, both could happen depending on how the builder is invoked. --- builder/parse_features | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/parse_features b/builder/parse_features index f836860..146f6cd 100755 --- a/builder/parse_features +++ b/builder/parse_features @@ -90,7 +90,7 @@ def main(): features_by_type[type] = [feature for feature in features if get_node_type(graph.nodes[feature]) == type] if len(features_by_type["platform"]) != 1: - print(f"{'warning' if args.allow_frankenstein else 'error'}: number of platforms != 1", file=sys.stderr) + print(f"{'warning' if args.allow_frankenstein else 'error'}: number of platforms is {len(features_by_type["platform"])}, but should be 1", file=sys.stderr) if not args.allow_frankenstein: print("hint: use --allow-frankenstein if you truly want to build with an unsupported number of platforms", file=sys.stderr) sys.exit(1)