Merge pull request #314 from influxdata/feature/fix-kapa-err

Fix kapacitor error message on POST with invalid data.
pull/10616/head
Chris Goller 2016-11-01 16:52:04 -05:00 committed by GitHub
commit 03306db6d8
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
}