Merge pull request #314 from influxdata/feature/fix-kapa-err
Fix kapacitor error message on POST with invalid data.pull/10616/head
commit
03306db6d8
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue