Update error message for file download failure in publicFileViewHandler

This commit is contained in:
Leon Bösche
2026-01-25 19:47:59 +01:00
parent bdc971927f
commit 38bf8013cd
2 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -3230,7 +3230,7 @@ func publicFileViewHandler(w http.ResponseWriter, r *http.Request, db *database.
resp, err := client.Download(downloadCtx, file.Path, r.Header.Get("Range"))
if err != nil {
errors.LogError(r, err, "Failed to download file")
errors.WriteError(w, errors.CodeInternal, "Server error", http.StatusInternalServerError)
errors.WriteError(w, errors.CodeInternal, "File temporarily unavailable. Please try again later.", http.StatusInternalServerError)
return
}
defer resp.Body.Close()