From 04c46893d3f6617e2aee3fa15dceee05e2e763b7 Mon Sep 17 00:00:00 2001 From: adelikat Date: Mon, 25 Mar 2013 00:44:29 +0000 Subject: [PATCH] Show the inner exception on program crash if there is one --- BizHawk.MultiClient/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/BizHawk.MultiClient/Program.cs b/BizHawk.MultiClient/Program.cs index 6960386ade..ff67a90f6f 100644 --- a/BizHawk.MultiClient/Program.cs +++ b/BizHawk.MultiClient/Program.cs @@ -99,6 +99,11 @@ namespace BizHawk.MultiClient } catch (Exception e) { + string message = e.ToString(); + if (e.InnerException != null) + { + message += "\n\nInner Exception:\n\n" + e.InnerException; + } MessageBox.Show(e.ToString()); } #if WINDOWS