From 19dd590f2cf226d456f26ae31c5e39c18fa39b57 Mon Sep 17 00:00:00 2001 From: "J.D. Purcell" Date: Fri, 1 Nov 2019 14:53:37 -0400 Subject: [PATCH] Improve error message. --- BizHawk.Client.EmuHawk/Program.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.EmuHawk/Program.cs b/BizHawk.Client.EmuHawk/Program.cs index ca69912195..17a24e0832 100644 --- a/BizHawk.Client.EmuHawk/Program.cs +++ b/BizHawk.Client.EmuHawk/Program.cs @@ -117,9 +117,11 @@ namespace BizHawk.Client.EmuHawk try { Global.Config = ConfigService.Load(PathManager.DefaultIniPath); - } catch (Exception e) { + } + catch (Exception e) + { new ExceptionBox(e).ShowDialog(); - new ExceptionBox("Since your config file is corrupted, we're going to recreate it. Back it up before proceeding if you want to investigate further.").ShowDialog(); + new ExceptionBox("Since your config file is corrupted or from a different BizHawk version, we're going to recreate it. Back it up before proceeding if you want to investigate further.").ShowDialog(); File.Delete(PathManager.DefaultIniPath); Global.Config = ConfigService.Load(PathManager.DefaultIniPath); }