1
0

In MindflowAdmin don't log these errors, just show me instead.

This commit is contained in:
Alexander Andreev 2023-06-04 18:12:53 +04:00
parent 405bc6d2d7
commit 9d84411d73
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -62,13 +62,13 @@ func (h *Handlers) Mindflow(w http.ResponseWriter, r *http.Request) {
func (h *Handlers) MindflowAdmin(w http.ResponseWriter, r *http.Request) { func (h *Handlers) MindflowAdmin(w http.ResponseWriter, r *http.Request) {
posts, err := h.mindflowDB.Posts() posts, err := h.mindflowDB.Posts()
if err != nil { if err != nil {
log.Println(err) Error(w, http.StatusInternalServerError, err.Error(), "failed to load posts")
return return
} }
categories, err := h.mindflowDB.Categories() categories, err := h.mindflowDB.Categories()
if err != nil { if err != nil {
log.Println(err) Error(w, http.StatusInternalServerError, err.Error(), "failed to load categories")
return return
} }