1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 02:41:23 +08:00

Fix broken exception message

This commit is contained in:
Dean Herbert
2021-05-13 19:06:58 +09:00
Unverified
parent 2f025f1967
commit e5f765d1a8
+1 -1
View File
@@ -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);