From 0aac58bfdb73065ef3b28886c2a610e1ba8c1a4e Mon Sep 17 00:00:00 2001 From: enn3 Date: Wed, 10 Jul 2024 17:13:39 +0200 Subject: [PATCH] added more logging --- Program.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/Program.cs b/Program.cs index 4f6bbf4..9dfbda1 100644 --- a/Program.cs +++ b/Program.cs @@ -15,9 +15,16 @@ internal sealed class Program [STAThread] public static void Main(string[] args) { - VelopackApp.Build().Run(); - BuildAvaloniaApp() - .StartWithClassicDesktopLifetime(args); + try + { + VelopackApp.Build().Run(); + BuildAvaloniaApp() + .StartWithClassicDesktopLifetime(args); + } + catch (Exception e) + { + Console.Error.WriteLine(e); + } } // Avalonia configuration, don't remove; also used by visual designer.