mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[TUI] Add error handling and Sentry integration in application startup
This commit is contained in:
@@ -60,10 +60,18 @@ public static class Program
|
|||||||
});
|
});
|
||||||
|
|
||||||
SentrySdk.ConfigureScope(scope => scope.SetExtra("Args", Environment.GetCommandLineArgs()));
|
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.
|
// There are too many places that depend on this being inited to be sure all are covered, so init it here.
|
||||||
PluginBase.Init();
|
PluginBase.Init();
|
||||||
|
|
||||||
return BuildAvaloniaApp().StartWithConsoleLifetime(args);
|
try
|
||||||
|
{
|
||||||
|
return BuildAvaloniaApp().StartWithConsoleLifetime(args);
|
||||||
|
}
|
||||||
|
catch(Exception ex)
|
||||||
|
{
|
||||||
|
SentrySdk.CaptureException(ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static AppBuilder BuildAvaloniaApp() =>
|
public static AppBuilder BuildAvaloniaApp() =>
|
||||||
|
|||||||
Reference in New Issue
Block a user