Improved errors logging

This commit is contained in:
roberto 2025-03-23 12:15:57 +01:00
parent 4a50e61fd6
commit 34054eb1df

View file

@ -712,7 +712,9 @@ func (app *application) itemView(w http.ResponseWriter, r *http.Request) {
}
w.Header().Add("HX-Trigger-After-Settle", `{"showModalDialog": ""}`)
_, err = fullBuf.WriteTo(w)
if err != nil {
app.logError("Building item view buffer : ", err)
}
} else {
err := response.Page(w, http.StatusOK, data, []string{"items/read_title.tmpl", "items/relations_view.tmpl", "items/read.tmpl"})
if err != nil {