diff options
author | Silvan Jegen <s.jegen@gmail.com> | 2017-02-19 18:16:51 +0100 |
---|---|---|
committer | Silvan Jegen <s.jegen@gmail.com> | 2017-02-19 18:16:51 +0100 |
commit | b1b366ac99c06cedff8f0ffc808649f27fa98c42 (patch) | |
tree | c9b22b3e1616384ace12bcf2d134027739fab847 /output | |
parent | f1eb4962060267458883f86bb5f4093b9b1afc47 (diff) |
Use a setter to set the Work error
Diffstat (limited to 'output')
-rw-r--r-- | output/http/http.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |