Merge pull request #16457 from influxdata/zs-improveErrorMessage16447
fix(ui): improve error message for create check (#16447)pull/16416/head
commit
9d1dd1c14f
|
@ -275,7 +275,11 @@ func (s *Service) createCheck(ctx context.Context, tx Tx, c influxdb.CheckCreate
|
|||
|
||||
t, err := s.createCheckTask(ctx, tx, c)
|
||||
if err != nil {
|
||||
return err
|
||||
return &influxdb.Error{
|
||||
Code: influxdb.EInvalid,
|
||||
Msg: "Could not create task from check",
|
||||
Err: err,
|
||||
}
|
||||
}
|
||||
c.SetTaskID(t.ID)
|
||||
|
||||
|
|
Loading…
Reference in New Issue