Observe blob fetch errors during GET requests.

This commit is contained in:
miyuko
2025-11-17 11:08:10 +00:00
parent 3334af922f
commit de17426f41

View File

@@ -217,6 +217,7 @@ func getPage(w http.ResponseWriter, r *http.Request) error {
} else {
reader, _, mtime, err = backend.GetBlob(r.Context(), string(entry.Data))
if err != nil {
ObserveError(err) // all storage errors must be reported
w.WriteHeader(http.StatusInternalServerError)
fmt.Fprintf(w, "internal server error: %s\n", err)
return err