浏览代码

Merge pull request #1911 from diffoperator/issue_1903

rafthttp: fixes issue 1903
Xiang Li 11 年之前
父节点
当前提交
f2863e5279
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rafthttp/sender.go

+ 1 - 1
rafthttp/sender.go

@@ -303,7 +303,7 @@ 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())
 	}
 }