Issue 494: Fix error reporting in http state reader
parent
ea8e1c5aa5
commit
87426cb5b6
|
@ -46,7 +46,11 @@ func (h *HTTPBackend) Read(p []byte) (n int, err error) {
|
|||
return 0, errors.Errorf("error requesting HTTP(s) backend state: status code: %d", res.StatusCode)
|
||||
}
|
||||
}
|
||||
return h.reader.Read(p)
|
||||
read, err := h.reader.Read(p)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return read, nil
|
||||
}
|
||||
|
||||
func (h *HTTPBackend) Close() error {
|
||||
|
|
Loading…
Reference in New Issue