throw resolve map_label error

This commit is contained in:
liugq 2023-06-25 10:26:19 +08:00
parent 1fe5ace58d
commit b65cd42d86
1 changed files with 2 additions and 1 deletions

View File

@ -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)
}