Skip to content

Commit f3998a1

Browse files
committed
explicit exception logging
1 parent e63c4f3 commit f3998a1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Flow.Launcher.Core/ExternalPlugins/CommunityPluginSource.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,15 @@ public async Task<List<UserPlugin>> FetchAsync(CancellationToken token)
7373
return null;
7474
}
7575
}
76-
catch (OperationCanceledException)
76+
catch (OperationCanceledException) when (token.IsCancellationRequested)
7777
{
78-
API.LogInfo(ClassName, $"Fetching from {ManifestFileUrl} was cancelled. That is most likely OK.");
78+
API.LogInfo(ClassName, $"Fetching from {ManifestFileUrl} was cancelled by caller.");
79+
return null;
80+
}
81+
catch (TaskCanceledException)
82+
{
83+
// Likely an HttpClient timeout or external cancellation not requested by our token
84+
API.LogWarn(ClassName, $"Fetching from {ManifestFileUrl} timed out.");
7985
return null;
8086
}
8187
catch (Exception e)

0 commit comments

Comments
 (0)