mirror of
https://github.com/ppy/osu.git
synced 2024-12-17 03:02:56 +08:00
Use better exception messaging
This commit is contained in:
parent
b455b9ad09
commit
8804769da1
@ -127,7 +127,7 @@ namespace osu.Game.Skinning.Components
|
||||
return BeatmapsetsStrings.ShowStatsBpm;
|
||||
|
||||
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");
|
||||
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
throw new ArgumentOutOfRangeException(nameof(attribute), attribute, $@"Unrecognised {nameof(BeatmapAttribute)}");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user