Fix broken target scrape error propagation.

pull/82/head
Julius Volz 12 years ago
parent 3537edee9f
commit 5d55785936

@ -138,7 +138,8 @@ func (t *target) Scrape(earliest time.Time, results chan format.Result) (err err
done <- true done <- true
}() }()
resp, err := http.Get(t.Address()) var resp *http.Response // Don't shadow "err" from the enclosing function.
resp, err = http.Get(t.Address())
if err != nil { if err != nil {
return return
} }

Loading…
Cancel
Save