We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bae0fa5 commit 526f002Copy full SHA for 526f002
Flow.Launcher.Core/Plugin/PluginManager.cs
@@ -88,14 +88,21 @@ public static async ValueTask DisposePluginsAsync()
88
89
private static async Task DisposePluginAsync(PluginPair pluginPair)
90
{
91
- switch (pluginPair.Plugin)
92
- {
93
- case IDisposable disposable:
94
- disposable.Dispose();
95
- break;
96
- case IAsyncDisposable asyncDisposable:
97
- await asyncDisposable.DisposeAsync();
98
+ try
+ {
+ switch (pluginPair.Plugin)
+ case IDisposable disposable:
+ disposable.Dispose();
+ break;
+ case IAsyncDisposable asyncDisposable:
99
+ await asyncDisposable.DisposeAsync();
100
101
+ }
102
103
+ catch (Exception e)
104
105
+ throw new FlowPluginException(pluginPair.Metadata, e);
106
}
107
108
0 commit comments