In MindflowAdmin don't log these errors, just show me instead.
This commit is contained in:
parent
405bc6d2d7
commit
9d84411d73
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user