Additional diagnostic reporting

This commit is contained in:
Justin Aquadro 2012-10-04 22:32:44 -04:00
parent 4949a35a84
commit 8deecc2808

View file

@ -20,12 +20,15 @@ namespace NBTExplorer
public static void StaticInitFailure (Exception e)
{
Console.WriteLine("Static Initialization Failure:");
Exception original = e;
while (e != null) {
Console.WriteLine(e.Message);
Console.WriteLine(e.StackTrace);
e = e.InnerException;
}
MessageBox.Show("Application failed during static initialization: " + original.Message);
Application.Exit();
}
}