rafthttp: fixes issue 1903

Record the URL being fetched in the log when we 404
release-2.0
Nikhil Sarda 2014-12-10 21:00:52 -08:00
parent a729c829a5
commit 123b3dd64c
1 changed files with 1 additions and 1 deletions

View File

@ -279,6 +279,6 @@ func (s *sender) post(data []byte) error {
case http.StatusNoContent:
return nil
default:
return fmt.Errorf("unhandled status %s", http.StatusText(resp.StatusCode))
return fmt.Errorf("unexpected http status %s while posting to %q", http.StatusText(resp.StatusCode), req.URL.String())
}
}