Skip to content

Commit

Permalink
Engine: Add a missing comma to ActionSet pseudolane error message
Browse files Browse the repository at this point in the history
Closes the subordinate clause.
  • Loading branch information
Fayti1703 committed May 20, 2024
1 parent 831bc5a commit 4f1b516
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BinaryMatrixEngine/ActionSet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public ActionSet(ActionType type, CardSpecification card, int lane) {
private static int ValidateLane(int lane, bool allowPseudo = false) {
return lane switch {
< 0 or > LANE_A => throw new ArgumentOutOfRangeException(nameof(lane), lane, "Lane must be within the range [0; " + LANE_A + "]."),
LANE_A when !allowPseudo => throw new ArgumentOutOfRangeException(nameof(lane), lane, "Lane must name a real lane, not the `a` pseudolane for this action."),
LANE_A when !allowPseudo => throw new ArgumentOutOfRangeException(nameof(lane), lane, "Lane must name a real lane, not the `a` pseudolane, for this action."),
_ => lane
};
}
Expand Down

0 comments on commit 4f1b516

Please sign in to comment.