throw resolve map_label error
This commit is contained in:
parent
1fe5ace58d
commit
b65cd42d86
|
@ -79,7 +79,8 @@ func (h *InsightAPI) renderMapLabelTemplate(w http.ResponseWriter, req *http.Req
|
||||||
label, err := common2.ExecuteTemplate(tpl, ctx.Value)
|
label, err := common2.ExecuteTemplate(tpl, ctx.Value)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
continue
|
h.WriteError(w, err.Error(), http.StatusInternalServerError)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
resultLabels[ctx.Key] = string(label)
|
resultLabels[ctx.Key] = string(label)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue