From b1b366ac99c06cedff8f0ffc808649f27fa98c42 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Sun, 19 Feb 2017 18:16:51 +0100 Subject: Use a setter to set the Work error --- output/http/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'output/http') diff --git a/output/http/http.go b/output/http/http.go index 158f091..8d17622 100644 --- a/output/http/http.go +++ b/output/http/http.go @@ -25,7 +25,7 @@ func New(kv map[string]string) output.Output { func (h *HttpOutput) Output(w *work.Work) error { _, err := http.Post(h.url, "application/json", bytes.NewReader(w.Data)) if err != nil { - w.Err = err + w.SetError(err) } return err -- cgit v1.2.3