Fix: Try catch around main's _Run() does not use the new logging method correct
This commit is contained in:
1 parent
b51fedd6c9
commit
b4b058101c
1 file changed
+1
-8
+1
-8
@@ -73,14 +73,7 @@ namespace Vocaluxe
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
string stackTrace = "";
|
CLog.Fatal(e, "Unhandled error: {ErrorMessage}", CLog.Params(e.Message));
|
||||||
try
|
|
||||||
{
|
|
||||||
stackTrace = e.StackTrace;
|
|
||||||
}
|
|
||||||
catch {}
|
|
||||||
MessageBox.Show("Unhandled error: " + e.Message + stackTrace);
|
|
||||||
CLog.Error("Unhandled error: " + e.Message + stackTrace);
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
_Run(args);
|
_Run(args);
|
||||||
|
|||||||
Reference in new issue
Block a user