From 2ffb5cbec5f66b47e73eaf93ff9579263879eed8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Dach?= Date: Mon, 28 Jul 2025 11:38:50 +0200 Subject: [PATCH] Throw another exception better --- osu.Game/Scoring/ScoreInfoExtensions.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Game/Scoring/ScoreInfoExtensions.cs b/osu.Game/Scoring/ScoreInfoExtensions.cs index 1065510f42..dd08326742 100644 --- a/osu.Game/Scoring/ScoreInfoExtensions.cs +++ b/osu.Game/Scoring/ScoreInfoExtensions.cs @@ -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); } }