From d7ea0ee540016d5fe4a2d87c885ee31d52e7ef37 Mon Sep 17 00:00:00 2001 From: gmriggs Date: Tue, 12 Sep 2023 15:02:00 -0400 Subject: [PATCH] don't swallow ReadDATFile exceptions --- ACViewer/View/MainMenu.xaml.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ACViewer/View/MainMenu.xaml.cs b/ACViewer/View/MainMenu.xaml.cs index 17e2795..ea1a114 100644 --- a/ACViewer/View/MainMenu.xaml.cs +++ b/ACViewer/View/MainMenu.xaml.cs @@ -88,7 +88,8 @@ public void LoadDATs(string filename) var portalFiles = DatManager.PortalDat.AllFiles.Count; MainWindow.Status.WriteLine($"CellFiles={cellFiles}, PortalFiles={portalFiles}");*/ - MainWindow.Status.WriteLine("Done"); + MainWindow.Status.WriteLine(runWorkerCompletedEventArgs.Error?.Message ?? "Done"); + if (DatManager.CellDat == null || DatManager.PortalDat == null) return;