Fix kapacitor error message on POST with invalid data.

pull/314/head
Chris Goller 2016-11-01 16:45:31 -05:00
parent 125d19eee8
commit dea713465c
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ func (h *Service) NewKapacitor(w http.ResponseWriter, r *http.Request) {
invalidJSON(w)
return
}
if req.Valid() != nil {
if err := req.Valid(); err != nil {
invalidData(w, err)
return
}