# HG changeset patch # User IBBoard # Date 1260821941 0 # Node ID fe5a03d7391827bfc3e90e13ccb663caac930a56 # Parent 2f9ad5385707d83ef3e7753624cff60a9d151f9d 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) diff -r 2f9ad5385707 -r fe5a03d73918 api/Factories/AbstractNativeWarFoundryFactory.cs --- 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();