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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user