Mercurial > repos > IBDev-IBBoard.WarFoundry.API
diff api/Factories/AbstractNonNativeFileExtensionWarFoundryFactory.cs @ 20:b7c93a5821cd
* Remove unnecessary project dependency
* Change logging on invalid file exception on load
* Add logging when a non-native loader is asked to load a file it doesn't understand
no-open-ticket
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 01 Mar 2009 15:00:03 +0000 |
parents | 3c228f093a71 |
children | 2f3cafb69799 |
line wrap: on
line diff
--- a/api/Factories/AbstractNonNativeFileExtensionWarFoundryFactory.cs Sat Feb 21 14:39:15 2009 +0000 +++ b/api/Factories/AbstractNonNativeFileExtensionWarFoundryFactory.cs Sun Mar 01 15:00:03 2009 +0000 @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.IO; +using IBBoard.Logging; using IBBoard.WarFoundry.API.Objects; namespace IBBoard.WarFoundry.API.Factories @@ -60,6 +61,10 @@ { objects.Add(CreateArmyFromFile(file)); } + else + { + LogNotifier.Warn(GetType(), "Failed trying to create from "+file.FullName+" - not a Race, Army or GameSystem"); + } return objects; }