1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 14:22:55 +08:00

Use better exception messaging

This commit is contained in:
Bartłomiej Dach 2024-10-18 08:51:01 +02:00
parent b455b9ad09
commit 8804769da1
No known key found for this signature in database

View File

@ -127,7 +127,7 @@ namespace osu.Game.Skinning.Components
return BeatmapsetsStrings.ShowStatsBpm; return BeatmapsetsStrings.ShowStatsBpm;
default: default:
throw new ArgumentOutOfRangeException(); throw new ArgumentOutOfRangeException(nameof(attribute), attribute, $@"Unrecognised {nameof(BeatmapAttribute)}");
} }
} }
@ -175,7 +175,7 @@ namespace osu.Game.Skinning.Components
return beatmap.Value.BeatmapInfo.StarRating.ToLocalisableString(@"F2"); return beatmap.Value.BeatmapInfo.StarRating.ToLocalisableString(@"F2");
default: default:
throw new ArgumentOutOfRangeException(); throw new ArgumentOutOfRangeException(nameof(attribute), attribute, $@"Unrecognised {nameof(BeatmapAttribute)}");
} }
} }