Merge pull request #1102 from codysoyland/cluster-resize-validate-set-coordinator

Fix node id validation on set-coordinator
This commit is contained in:
Cody Soyland 2018-02-12 11:25:30 -06:00 committed by GitHub
commit b08d1ce3d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1967,7 +1967,7 @@ func (h *Handler) handlePostClusterResizeSetCoordinator(w http.ResponseWriter, r
newNode := h.Cluster.nodeByID(req.ID)
if newNode == nil {
http.Error(w, err.Error(), http.StatusBadRequest)
http.Error(w, "Node with provided ID does not exist", http.StatusBadRequest)
return
}