Skip to content

Commit 3aa324d

Browse files
committed
Throw plugin exception for plugin save interface
1 parent 578079c commit 3aa324d

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Flow.Launcher.Core/Plugin/PluginManager.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,14 @@ public static void Save()
6464
foreach (var plugin in AllPlugins)
6565
{
6666
var savable = plugin.Plugin as ISavable;
67-
savable?.Save();
67+
try
68+
{
69+
savable?.Save();
70+
}
71+
catch (Exception e)
72+
{
73+
throw new FlowPluginException(plugin.Metadata, e);
74+
}
6875
}
6976

7077
API.SavePluginSettings();

0 commit comments

Comments
 (0)