Skip to content

Commit

Permalink
add the player name to the error
Browse files Browse the repository at this point in the history
  • Loading branch information
alwaysintreble committed Jul 25, 2024
1 parent 857962e commit 90c1671
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,10 @@ def verify_keys(self) -> None:
)

def verify(self, world: typing.Type[World], player_name: str, plando_options: "PlandoOptions") -> None:
self.verify_keys()
try:
self.verify_keys()
except OptionError as validation_error:
raise OptionError(f"Player {player_name} has invalid option keys:\n{validation_error}")
if self.convert_name_groups and self.verify_item_name:
new_value = type(self.value)() # empty container of whatever value is
for item_name in self.value:
Expand Down

0 comments on commit 90c1671

Please sign in to comment.