From 4efce428a4abadd0180ab5182cecd8c987ebe74b Mon Sep 17 00:00:00 2001 From: James White Date: Fri, 17 Jul 2026 19:03:52 +0100 Subject: [PATCH] Core: Adjust YAML error message to clarify the name is not the cause of the error (#6267) --- Generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Generate.py b/Generate.py index ff76b3c649..0c2cd1567f 100644 --- a/Generate.py +++ b/Generate.py @@ -279,7 +279,7 @@ def main(args=None) -> tuple[argparse.Namespace, int]: f"(name: {args.name.get(player, name)})") player_errors.append( f"{len(player_errors) + 1}. " - f"File {path} document #{doc_index + 1} (name: {args.name.get(player, name)}) is invalid. " + f"File {path} document #{doc_index + 1} (with name: {args.name.get(player, name)}) is invalid. " f"Please fix your yaml.\n{Utils.get_all_causes(e)}") # increment for each yaml document in the file