# HG changeset patch # User IBBoard # Date 1254167416 0 # Node ID 12f11e3c62614e45889687da3298fdb97889926b # Parent 9a215113c84cbb034ba4ef0cbef512bad0590ff9 Re #178: "crash" when loading old .army file with equipment tags that are "old" * Catch the "Required Data Missing" exception that is thrown by loading armies and display a message box diff -r 9a215113c84c -r 12f11e3c6261 FrmMain.cs --- a/FrmMain.cs Mon Sep 28 19:40:50 2009 +0000 +++ b/FrmMain.cs Mon Sep 28 19:50:16 2009 +0000 @@ -606,6 +606,12 @@ loadedFilePath = newFilePath; return true; } + catch (RequiredDataMissingException ex) + { + log.Error(ex); + MessageBox.Show(this, ex.Message, Translation.GetTranslation("InvalidFileBoxTitle", "Invalid army file"), MessageBoxButtons.OK, MessageBoxIcon.Error); + return false; + } catch (InvalidFileException ex) { log.Error(ex);