Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/ml/imf/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ async function fetchWithProgress(
} catch {
continue
}
if (!res.ok && res.status !== 206) throw new RegistryError(`fetch failed: ${url} -> ${res.status}`)
if (!res.ok && res.status !== 206)
throw new RegistryError(`fetch failed: ${url} -> ${res.status}`)
if (received === 0) total = Number(res.headers.get("content-length") ?? 0)
else if (res.status !== 206) {
// server ignored Range: restart cleanly rather than corrupt
Expand Down
Loading