Skip to content

Commit

Permalink
Improve error description in influxdb_v2 output (#4952)
Browse files Browse the repository at this point in the history
  • Loading branch information
glinton authored and danielnelson committed Nov 3, 2018
1 parent 9035505 commit ad5fcf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/outputs/influxdb_v2/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (c *httpClient) Write(ctx context.Context, metrics []telegraf.Metric) error
err = json.NewDecoder(resp.Body).Decode(writeResp)
desc := writeResp.Error()
if err != nil {
desc = err.Error()
desc = resp.Status
}

switch resp.StatusCode {
Expand Down

0 comments on commit ad5fcf8

Please sign in to comment.