Skip to content

Commit 38deca1

Browse files
authored
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.
1 parent 04e9781 commit 38deca1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/parse_features

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def main():
9090
features_by_type[type] = [feature for feature in features if get_node_type(graph.nodes[feature]) == type]
9191

9292
if len(features_by_type["platform"]) != 1:
93-
print(f"{'warning' if args.allow_frankenstein else 'error'}: number of platforms != 1", file=sys.stderr)
93+
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)
9494
if not args.allow_frankenstein:
9595
print("hint: use --allow-frankenstein if you truly want to build with an unsupported number of platforms", file=sys.stderr)
9696
sys.exit(1)

0 commit comments

Comments
 (0)