diff --git a/plugin/api/insight/map_label.go b/plugin/api/insight/map_label.go index 0209a30c..15b84208 100644 --- a/plugin/api/insight/map_label.go +++ b/plugin/api/insight/map_label.go @@ -79,7 +79,8 @@ func (h *InsightAPI) renderMapLabelTemplate(w http.ResponseWriter, req *http.Req label, err := common2.ExecuteTemplate(tpl, ctx.Value) if err != nil { log.Error(err) - continue + h.WriteError(w, err.Error(), http.StatusInternalServerError) + return } resultLabels[ctx.Key] = string(label) }