From b4b058101c2d435448671b59f14c6a568714bef9 Mon Sep 17 00:00:00 2001 From: lukeIam <2lukeiam@gmail.com> Date: Mon, 26 Feb 2018 20:29:16 +0100 Subject: [PATCH] Fix: Try catch around main's _Run() does not use the new logging method correct --- Vocaluxe/Program.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Vocaluxe/Program.cs b/Vocaluxe/Program.cs index 75406466..2f049814 100644 --- a/Vocaluxe/Program.cs +++ b/Vocaluxe/Program.cs @@ -73,14 +73,7 @@ namespace Vocaluxe } catch (Exception e) { - string stackTrace = ""; - try - { - stackTrace = e.StackTrace; - } - catch {} - MessageBox.Show("Unhandled error: " + e.Message + stackTrace); - CLog.Error("Unhandled error: " + e.Message + stackTrace); + CLog.Fatal(e, "Unhandled error: {ErrorMessage}", CLog.Params(e.Message)); } #else _Run(args);