mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 16:52:54 +08:00
Fix broken exception message
This commit is contained in:
parent
2f025f1967
commit
e5f765d1a8
@ -166,7 +166,7 @@ namespace osu.Game.Skinning.Editor
|
||||
private void placeComponent(Type type)
|
||||
{
|
||||
if (!(Activator.CreateInstance(type) is ISkinnableDrawable component))
|
||||
throw new InvalidOperationException("Attempted to instantiate a component for placement which was not an {typeof(ISkinnableComponent)}.");
|
||||
throw new InvalidOperationException($"Attempted to instantiate a component for placement which was not an {typeof(ISkinnableDrawable)}.");
|
||||
|
||||
getTarget(SkinnableTarget.MainHUDComponents)?.Add(component);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user