mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Throw exception when zip not found
This commit is contained in:
parent
bf598887dd
commit
b7a78362bf
1 changed files with 2 additions and 2 deletions
|
|
@ -267,7 +267,7 @@ namespace Flow.Launcher.Plugin.PluginsManager
|
|||
}).ContinueWith(t =>
|
||||
{
|
||||
Log.Exception("PluginsManager", $"Update failed for {x.Name}",
|
||||
t.Exception.InnerException, "RequestUpdate");
|
||||
t.Exception.InnerException);
|
||||
Context.API.ShowMsg(
|
||||
Context.API.GetTranslation("plugin_pluginsmanager_install_error_title"),
|
||||
string.Format(
|
||||
|
|
@ -410,7 +410,7 @@ namespace Flow.Launcher.Plugin.PluginsManager
|
|||
private void Install(UserPlugin plugin, string downloadedFilePath)
|
||||
{
|
||||
if (!File.Exists(downloadedFilePath))
|
||||
return;
|
||||
throw new FileNotFoundException($"Plugin {plugin.ID} zip file not found at {downloadedFilePath}", downloadedFilePath);
|
||||
try
|
||||
{
|
||||
PluginManager.Install(plugin, downloadedFilePath);
|
||||
|
|
|
|||
Loading…
Reference in a new issue