Skip to content

Commit

Permalink
Fix exception type
Browse files Browse the repository at this point in the history
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
  • Loading branch information
OliBomby and bdach authored Jun 20, 2024
1 parent 7439954 commit 4c6741e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Osu/Edit/OsuHitObjectComposer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private void updatePositionSnapGrid(ValueChangedEvent<PositionSnapGridType> obj)
break;

default:
throw new NotImplementedException($"{OsuGridToolboxGroup.GridType} has an incorrect value.");
throw new ArgumentOutOfRangeException(nameof(OsuGridToolboxGroup.GridType), OsuGridToolboxGroup.GridType, "Unsupported grid type.");
}

// Bind the start position to the toolbox sliders.
Expand Down

0 comments on commit 4c6741e

Please sign in to comment.