Fix kapacitor error message on POST with invalid data.
parent
125d19eee8
commit
dea713465c
|
@ -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