mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Log exception
This commit is contained in:
parent
0355993b00
commit
18c8a04cbc
1 changed files with 6 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ namespace Flow.Launcher.ViewModel
|
|||
{
|
||||
public partial class PluginViewModel : BaseModel
|
||||
{
|
||||
private static readonly string ClassName = nameof(PluginViewModel);
|
||||
|
||||
private static readonly Settings Settings = Ioc.Default.GetRequiredService<Settings>();
|
||||
|
||||
private readonly PluginPair _pluginPair;
|
||||
|
|
@ -148,6 +150,10 @@ namespace Flow.Launcher.ViewModel
|
|||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
// Log exception
|
||||
App.API.LogException(ClassName, $"Failed to create setting panel for {pair.Metadata.Name}", e);
|
||||
|
||||
// Show error message in UI
|
||||
var errorMsg = string.Format(App.API.GetTranslation("errorCreatingSettingPanel"),
|
||||
pair.Metadata.Name, Environment.NewLine, e.Message);
|
||||
var grid = new Grid()
|
||||
|
|
|
|||
Loading…
Reference in a new issue