Skip to content

Commit b7a7836

Browse files
Throw exception when zip not found
1 parent bf59888 commit b7a7836

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Plugins/Flow.Launcher.Plugin.PluginsManager/PluginsManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ await Http.DownloadAsync(x.PluginNewUserPlugin.UrlDownload, downloadToFilePath)
267267
}).ContinueWith(t =>
268268
{
269269
Log.Exception("PluginsManager", $"Update failed for {x.Name}",
270-
t.Exception.InnerException, "RequestUpdate");
270+
t.Exception.InnerException);
271271
Context.API.ShowMsg(
272272
Context.API.GetTranslation("plugin_pluginsmanager_install_error_title"),
273273
string.Format(
@@ -410,7 +410,7 @@ internal async ValueTask<List<Result>> RequestInstallOrUpdate(string search, Can
410410
private void Install(UserPlugin plugin, string downloadedFilePath)
411411
{
412412
if (!File.Exists(downloadedFilePath))
413-
return;
413+
throw new FileNotFoundException($"Plugin {plugin.ID} zip file not found at {downloadedFilePath}", downloadedFilePath);
414414
try
415415
{
416416
PluginManager.Install(plugin, downloadedFilePath);

0 commit comments

Comments
 (0)