Show the inner exception on program crash if there is one
This commit is contained in:
parent
4905c698bd
commit
04c46893d3
|
@ -99,6 +99,11 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
string message = e.ToString();
|
||||||
|
if (e.InnerException != null)
|
||||||
|
{
|
||||||
|
message += "\n\nInner Exception:\n\n" + e.InnerException;
|
||||||
|
}
|
||||||
MessageBox.Show(e.ToString());
|
MessageBox.Show(e.ToString());
|
||||||
}
|
}
|
||||||
#if WINDOWS
|
#if WINDOWS
|
||||||
|
|
Loading…
Reference in New Issue