summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
Diffstat (limited to 'output')
-rw-r--r--output/http/http.go2
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