Update UnhandledExceptionHandler

This commit is contained in:
lukeIam committed 2018-01-17 18:08:44 +01:00
1 parent e236535a42
commit 6f9fcfc03a
1 file changed
+1 -10
+1 -10
View File
@@ -453,16 +453,7 @@ namespace Vocaluxe
[HandleProcessCorruptedStateExceptions]
private static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs args)
{
var e = (Exception)args.ExceptionObject;
string stackTrace = "";
try
{
stackTrace = e.StackTrace;
}
catch {}
MessageBox.Show("Unhandled exception: " + e.Message + stackTrace);
CLog.Error("Unhandled exception: " + e.Message + stackTrace);
_CloseProgram();
CLog.Fatal((Exception)args.ExceptionObject, "Unhandled exception: {ExceptionMessage}", CLog.Params(e.Message));
}
#endif