Core: Adjust YAML error message to clarify the name is not the cause of the error (#6267)

This commit is contained in:
James White
2026-07-17 19:03:52 +01:00
committed by GitHub
parent 6907d89968
commit 4efce428a4
+1 -1
View File
@@ -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