From f3998a190c2cb985c4e5ef92052ae29603197cca Mon Sep 17 00:00:00 2001 From: dcog989 Date: Sat, 13 Sep 2025 17:04:32 +0100 Subject: [PATCH] explicit exception logging --- .../ExternalPlugins/CommunityPluginSource.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs b/Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs index 4ec6f142b..2ff51ff73 100644 --- a/Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs +++ b/Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs @@ -73,9 +73,15 @@ namespace Flow.Launcher.Core.ExternalPlugins return null; } } - catch (OperationCanceledException) + catch (OperationCanceledException) when (token.IsCancellationRequested) { - API.LogInfo(ClassName, $"Fetching from {ManifestFileUrl} was cancelled. That is most likely OK."); + API.LogInfo(ClassName, $"Fetching from {ManifestFileUrl} was cancelled by caller."); + return null; + } + catch (TaskCanceledException) + { + // Likely an HttpClient timeout or external cancellation not requested by our token + API.LogWarn(ClassName, $"Fetching from {ManifestFileUrl} timed out."); return null; } catch (Exception e)