1
0
Fork 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
1 changed files with 2 additions and 2 deletions

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) {
posts, err := h.mindflowDB.Posts()
if err != nil {
log.Println(err)
Error(w, http.StatusInternalServerError, err.Error(), "failed to load posts")
return
}
categories, err := h.mindflowDB.Categories()
if err != nil {
log.Println(err)
Error(w, http.StatusInternalServerError, err.Error(), "failed to load categories")
return
}