1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-03 02:31:25 +08:00

Throw another exception better

This commit is contained in:
Bartłomiej Dach
2025-07-28 11:38:50 +02:00
Unverified
parent f489ffdfd7
commit 2ffb5cbec5
+2 -1
View File
@@ -53,7 +53,8 @@ namespace osu.Game.Scoring
case LeaderboardSortMode.Date:
return scores.OrderByDescending(s => s.Date);
default: throw new ArgumentOutOfRangeException();
default:
throw new ArgumentOutOfRangeException(nameof(leaderboardSortMode), leaderboardSortMode, null);
}
}