1
0
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:
miterosan 2018-07-23 22:08:37 +02:00
parent d9611dcffb
commit 2ae890366a

View File

@ -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;
}