feat(alerting): save execution error message to annotations

This commit is contained in:
bergquist
2016-08-31 14:06:54 +02:00
parent c624f3d470
commit 4619a05f43
2 changed files with 5 additions and 2 deletions

View File

@@ -49,12 +49,12 @@ func (e *GraphiteExecutor) Execute(queries tsdb.QuerySlice, context *tsdb.QueryC
}
res, err := client.Do(req)
defer res.Body.Close()
if err != nil {
result.Error = err
return result
}
defer res.Body.Close()
body, err := ioutil.ReadAll(res.Body)
if err != nil {
result.Error = err