File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ namespace Flow.Launcher.ViewModel
15
15
{
16
16
public partial class PluginViewModel : BaseModel
17
17
{
18
+ private static readonly string ClassName = nameof ( PluginViewModel ) ;
19
+
18
20
private static readonly Settings Settings = Ioc . Default . GetRequiredService < Settings > ( ) ;
19
21
20
22
private readonly PluginPair _pluginPair ;
@@ -148,6 +150,10 @@ private static Control TryCreateSettingPanel(PluginPair pair)
148
150
}
149
151
catch ( Exception e )
150
152
{
153
+ // Log exception
154
+ App . API . LogException ( ClassName , $ "Failed to create setting panel for { pair . Metadata . Name } ", e ) ;
155
+
156
+ // Show error message in UI
151
157
var errorMsg = string . Format ( App . API . GetTranslation ( "errorCreatingSettingPanel" ) ,
152
158
pair . Metadata . Name , Environment . NewLine , e . Message ) ;
153
159
var grid = new Grid ( )
You can’t perform that action at this time.
0 commit comments