From 25381ef2c2bf233362eeb8f18775ac171cafa5b0 Mon Sep 17 00:00:00 2001 From: Scipio Wright Date: Sat, 4 Jan 2025 07:29:30 -0500 Subject: [PATCH] Core: Make the error for a missing option display the player name (#4430) --- Generate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Generate.py b/Generate.py index 35c39627b1..8a2e72d1ce 100644 --- a/Generate.py +++ b/Generate.py @@ -500,7 +500,8 @@ def roll_settings(weights: dict, plando_options: PlandoOptions = PlandoOptions.b for option_key in game_weights: if option_key in {"triggers", *valid_keys}: continue - logging.warning(f"{option_key} is not a valid option name for {ret.game} and is not present in triggers.") + logging.warning(f"{option_key} is not a valid option name for {ret.game} and is not present in triggers " + f"for player {ret.name}.") if PlandoOptions.items in plando_options: ret.plando_items = copy.deepcopy(game_weights.get("plando_items", [])) if ret.game == "A Link to the Past":