1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-01 17:38:37 +00:00

Improve logging messages in ui package

This commit is contained in:
Frédéric Guillot 2018-11-11 11:40:40 -08:00
parent 5a69a61d48
commit ca45765c46
13 changed files with 22 additions and 24 deletions

View file

@ -58,7 +58,7 @@ func (h *handler) saveCategory(w http.ResponseWriter, r *http.Request) {
}
if err = h.store.CreateCategory(&category); err != nil {
logger.Error("[Controller:CreateCategory] %v", err)
logger.Error("[UI:SaveCategory] %v", err)
view.Set("errorMessage", "error.unable_to_create_category")
html.OK(w, r, view.Render("create_category"))
return