We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5569be commit 6631296Copy full SHA for 6631296
1 file changed
src/LiveLingo.Core/Processing/NativeRuntimeUpdater.cs
@@ -87,8 +87,16 @@ public class NativeRuntimeUpdater(
87
Directory.CreateDirectory(nativeDir);
88
89
var archivePath = Path.Combine(nativeDir, $"temp.{ext}");
90
- var bytes = await http.GetByteArrayAsync(downloadUrl, ct);
91
- await File.WriteAllBytesAsync(archivePath, bytes, ct);
+ try
+ {
92
+ var bytes = await http.GetByteArrayAsync(downloadUrl, ct);
93
+ await File.WriteAllBytesAsync(archivePath, bytes, ct);
94
+ }
95
+ catch (Exception ex) when (ex is HttpRequestException or IOException or TaskCanceledException)
96
97
+ logger.LogWarning(ex, "Failed to download llama-server from {Url}", downloadUrl);
98
+ return null;
99
100
101
if (ext == "zip")
102
{
0 commit comments