Use nameof

This commit is contained in:
smoogipoo 2021-04-16 15:40:06 +09:00
parent d1c72f5e13
commit 8c4804dd7a

View File

@ -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);
}