default error when trying to render an unsupported templateId.

This commit is contained in:
fiatjaf
2023-11-06 18:01:13 -03:00
parent ec4a8bc280
commit 6d6defa419

View File

@@ -345,6 +345,9 @@ func renderEvent(w http.ResponseWriter, r *http.Request) {
Kind: data.event.Kind,
KindDescription: data.kindDescription,
})
default:
log.Error().Int("templateId", int(data.templateId)).Msg("no way to render")
http.Error(w, "tried to render an unsupported template at render_event.go", 500)
}
if err != nil {