Fix error message (panics since err == nil)

This commit is contained in:
Cody Soyland 2018-02-08 16:50:44 -06:00
parent 6741a590ed
commit b3532a617f

View file

@ -1966,7 +1966,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
}