Improved errors logging
This commit is contained in:
parent
4a50e61fd6
commit
34054eb1df
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
app.logError("Building item view buffer : ", err)
|
||||
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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue