Skip to content

Commit

Permalink
added outcomes in an error message when saving a game
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Kopylov committed Apr 24, 2024
1 parent 6b0053e commit 2793765
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/data_models/Game.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,5 @@ def validate_results(
):
return "FW"

raise ValueError("Invalid game results: No clear win condition met.")
raise ValueError(f"Invalid game results: No clear win condition met. \n"
f"Here is outcomes that were recorded: {outcomes_counter}\n")

0 comments on commit 2793765

Please sign in to comment.