From 123b3dd64ce7ddffd32a263d7278db7d2282ba20 Mon Sep 17 00:00:00 2001 From: Nikhil Sarda Date: Wed, 10 Dec 2014 21:00:52 -0800 Subject: [PATCH] rafthttp: fixes issue 1903 Record the URL being fetched in the log when we 404 --- rafthttp/sender.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rafthttp/sender.go b/rafthttp/sender.go index e3c558dbe..f761363de 100644 --- a/rafthttp/sender.go +++ b/rafthttp/sender.go @@ -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()) } }