mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 08:22:56 +08:00
Fix incorrect exception text
This commit is contained in:
parent
19223ba013
commit
9dfa48b22e
@ -58,7 +58,7 @@ namespace osu.Game.Skinning
|
|||||||
throw new NotSupportedException("Attempting to add a new component to a target container which is not supported by the current skin.");
|
throw new NotSupportedException("Attempting to add a new component to a target container which is not supported by the current skin.");
|
||||||
|
|
||||||
if (!(component is Drawable drawable))
|
if (!(component is Drawable drawable))
|
||||||
throw new ArgumentException("Provided argument must be of type {nameof(ISkinnableComponent)}.", nameof(drawable));
|
throw new ArgumentException($"Provided argument must be of type {nameof(Drawable)}.", nameof(drawable));
|
||||||
|
|
||||||
content.Add(drawable);
|
content.Add(drawable);
|
||||||
components.Add(component);
|
components.Add(component);
|
||||||
|
Loading…
Reference in New Issue
Block a user