mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
explicit exception logging
This commit is contained in:
parent
e63c4f3b6e
commit
f3998a190c
1 changed files with 8 additions and 2 deletions
|
|
@ -73,9 +73,15 @@ namespace Flow.Launcher.Core.ExternalPlugins
|
||||||
return null;
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue