Show the inner exception on program crash if there is one

This commit is contained in:
adelikat 2013-03-25 00:44:29 +00:00
parent 4905c698bd
commit 04c46893d3
1 changed files with 5 additions and 0 deletions

View File

@ -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