[TUI] Add error handling and Sentry integration in application startup

This commit is contained in:
2025-10-16 17:49:20 +01:00
parent d1d2824ba5
commit eb8f0fc2a6

View File

@@ -60,10 +60,18 @@ public static class Program
});
SentrySdk.ConfigureScope(scope => scope.SetExtra("Args", Environment.GetCommandLineArgs()));
// There are too many places that depend on this being inited to be sure all are covered, so init it here.
PluginBase.Init();
return BuildAvaloniaApp().StartWithConsoleLifetime(args);
try
{
return BuildAvaloniaApp().StartWithConsoleLifetime(args);
}
catch(Exception ex)
{
SentrySdk.CaptureException(ex);
}
}
public static AppBuilder BuildAvaloniaApp() =>