Improve some exception types.

This commit is contained in:
RoosterDragon
2016-09-11 15:14:44 +01:00
parent adc968db76
commit 9f1c872340
6 changed files with 7 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ namespace OpenRA
ChannelInfo info;
lock (Channels)
if (!Channels.TryGetValue(channelName, out info))
throw new Exception("Tried logging to non-existent channel " + channelName);
throw new ArgumentException("Tried logging to non-existent channel " + channelName, "channelName");
return info;
}