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:
parent
b455b9ad09
commit
8804769da1
@ -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)}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user