mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 00:43:21 +08:00
Nicefy the errormessage in the constructor of GetMessagesRequest
This commit is contained in:
parent
d9611dcffb
commit
2ae890366a
@ -18,7 +18,7 @@ namespace osu.Game.Online.API.Requests
|
||||
if (channels == null)
|
||||
throw new ArgumentNullException(nameof(channels));
|
||||
if (channels.Any(c => c.Target != TargetType.Channel))
|
||||
throw new ArgumentException($"All channels in the argument channels must have the {nameof(Channel.Target)} Channel");
|
||||
throw new ArgumentException($"All channels in the argument channels must have a {nameof(Channel.Target)} of {nameof(TargetType.Channel)}");
|
||||
|
||||
this.channels = channels;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user