From 6c4a710b819ddfa92a3e23db4fd73585d08a7352 Mon Sep 17 00:00:00 2001 From: lukeIam <2lukeiam@gmail.com> Date: Sat, 20 Jan 2018 08:03:29 +0100 Subject: [PATCH] Fix small bug in the release build --- Vocaluxe/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Vocaluxe/Program.cs b/Vocaluxe/Program.cs index c4f04c18..024b9575 100644 --- a/Vocaluxe/Program.cs +++ b/Vocaluxe/Program.cs @@ -434,7 +434,8 @@ namespace Vocaluxe [HandleProcessCorruptedStateExceptions] private static void UnhandledExceptionHandler(object sender, UnhandledExceptionEventArgs args) { - CLog.Fatal((Exception)args.ExceptionObject, "Unhandled exception: {ExceptionMessage}", CLog.Params(e.Message)); + var e = (Exception)args.ExceptionObject; + CLog.Fatal(e, "Unhandled exception: {ExceptionMessage}", CLog.Params(e.Message)); } #endif