Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

do not panic server if file cannot be opened

Bruce MacDonald0fd627844621
diff --git a/server/images.go b/server/images.go
index 6341dbc52..18e7924eb 100644
--- a/server/images.go
+++ b/server/images.go
@@ -974,7 +974,7 @@ func downloadBlob(mp ModelPath, digest string, regOpts *RegistryOptions, fn func
out, err := os.OpenFile(fp+"-partial", os.O_CREATE|os.O_APPEND|os.O_WRONLY, 0o644)
if err != nil {
- panic(err)
+ return fmt.Errorf("open file: %w", err)
}
defer out.Close()