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

@@ -276,7 +276,7 @@ namespace OpenRA.Mods.D2k.UtilityCommands
stream = File.OpenRead(filename);
if (stream.Length == 0 || stream.Length % 4 != 0)
throw new Exception("The map is in an unrecognized format!");
throw new ArgumentException("The map is in an unrecognized format!", "filename");
Initialize(filename);
FillMap();