Merge pull request #16457 from influxdata/zs-improveErrorMessage16447

fix(ui): improve error message for create check (#16447)
pull/16416/head
Zoe Steinkamp 2020-01-10 08:17:00 -07:00 committed by GitHub
commit 9d1dd1c14f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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)