1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

fix: index error during summary generation (resolve #361)

chore(sentry): include stacktrace with panics
This commit is contained in:
Ferdinand Mütsch
2022-04-20 21:36:39 +02:00
parent d778612242
commit 4b0a3cf0d6
5 changed files with 12 additions and 18 deletions

View File

@ -51,6 +51,7 @@ func (h *SummaryHandler) GetIndex(w http.ResponseWriter, r *http.Request) {
summary, err, status := su.LoadUserSummary(h.summarySrvc, r)
if err != nil {
w.WriteHeader(status)
conf.Log().Request(r).Error("failed to load summary - %v", err)
templates[conf.SummaryTemplate].Execute(w, h.buildViewModel(r).WithError(err.Error()))
return
}