mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Better exception for SearchableListFilterControl's generic type argument not being an enum
This commit is contained in:
parent
239472c451
commit
816caf86ea
@ -30,7 +30,7 @@ namespace osu.Game.Overlays.SearchableList
|
||||
protected SearchableListFilterControl()
|
||||
{
|
||||
if (!typeof(T).IsEnum)
|
||||
throw new InvalidOperationException("BrowseFilterControl only supports enums as the generic type argument");
|
||||
throw new InvalidOperationException("SearchableListFilterControl's sort tabs only support enums as the generic type argument");
|
||||
|
||||
RelativeSizeAxes = Axes.X;
|
||||
AutoSizeAxes = Axes.Y;
|
||||
|
Loading…
Reference in New Issue
Block a user