mirror of
https://github.com/ppy/osu
synced 2025-01-03 04:42:10 +00:00
Use nameof
This commit is contained in:
parent
d1c72f5e13
commit
8c4804dd7a
@ -173,7 +173,7 @@ namespace osu.Game.Rulesets.Mods
|
||||
else
|
||||
{
|
||||
if (!(target is IParseable parseable))
|
||||
throw new InvalidOperationException($"Bindable type {target.GetType().ReadableName()} is not IParseable.");
|
||||
throw new InvalidOperationException($"Bindable type {target.GetType().ReadableName()} is not {nameof(IParseable)}.");
|
||||
|
||||
parseable.Parse(source);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user