Merge 534bebe073d13dda1569eef1ca39bb9a8b90a30f into f03ca44a8ec4abc06086e84c95ecf7212854d0a7

This commit is contained in:
agentic-ahuja 2026-03-03 22:31:07 +01:00 committed by GitHub
commit c634836fd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,11 +46,11 @@ func (pub *Router) handleImages(w http.ResponseWriter, r *http.Request) {
return
case errors.Is(err, model.ErrNotFound):
log.Warn(r, "Couldn't find coverArt", "id", id, err)
http.Error(w, "Artwork not found", http.StatusNotFound)
w.WriteHeader(http.StatusNoContent)
return
case errors.Is(err, artwork.ErrUnavailable):
log.Debug(r, "Item does not have artwork", "id", id, err)
http.Error(w, "Artwork not found", http.StatusNotFound)
w.WriteHeader(http.StatusNoContent)
return
case err != nil:
log.Error(r, "Error retrieving coverArt", "id", id, err)