From 11a13967d5632533361558d622ea4dc7ad75205c Mon Sep 17 00:00:00 2001 From: CaitSith2 Date: Wed, 23 Feb 2022 16:21:53 -0800 Subject: [PATCH] Report precisely what item link is invalid instead of ALL of them. --- Options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Options.py b/Options.py index a282b5c9..a1215bb7 100644 --- a/Options.py +++ b/Options.py @@ -477,10 +477,10 @@ class ItemLinks(OptionList): existing_links.add(link["name"]) for item_name in link["item_pool"]: if item_name not in world.item_names and item_name not in world.item_name_groups: - raise Exception(f"Item {item_name} from option {self} " + raise Exception(f"Item {item_name} from item link {link} " f"is not a valid item name from {world.game}") if link["replacement_item"] and link["replacement_item"] not in world.item_names: - raise Exception(f"Item {link['replacement_item']} from option {self} " + raise Exception(f"Item {link['replacement_item']} from item link {link} " f"is not a valid item name from {world.game}")