mirror of
https://github.com/aljazceru/njump.git
synced 2026-01-31 11:44:34 +01:00
default error when trying to render an unsupported templateId.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user