Mercurial > repos > IBBoard.WarFoundry.API
changeset 223:fe5a03d73918
Fixes #232: WarFoundry is hiding error details when loading files
* Remove error hiding introduced in r281 for GameSystems that was in from the start for Races (code caught an InvalidFileException and created and threw a new InvalidFileException)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Mon, 14 Dec 2009 20:19:01 +0000 |
parents | 2f9ad5385707 |
children | f097888efcfe |
files | api/Factories/AbstractNativeWarFoundryFactory.cs |
diffstat | 1 files changed, 0 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/api/Factories/AbstractNativeWarFoundryFactory.cs Sun Dec 13 19:49:50 2009 +0000 +++ b/api/Factories/AbstractNativeWarFoundryFactory.cs Mon Dec 14 20:19:01 2009 +0000 @@ -121,10 +121,6 @@ { return CreateArmyFromStream(file, dataStream); } - catch (InvalidFileException ex) - { - throw new InvalidFileException("Data file " + file.Name + " was not a valid army file", ex); - } finally { dataStream.Close(); @@ -142,10 +138,6 @@ { return CreateRaceFromStream(file, dataStream); } - catch (InvalidFileException ex) - { - throw new InvalidFileException("Data file "+file.Name+" was not a valid race file", ex); - } finally { dataStream.Close(); @@ -163,10 +155,6 @@ { return CreateGameSystemFromStream(file, dataStream); } - catch (InvalidFileException ex) - { - throw new InvalidFileException("Data file " + file.Name + " was not a valid game system file", ex); - } finally { dataStream.Close();