Skip to content

Commit

Permalink
return structured error
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyTVu committed Feb 22, 2024
1 parent 5986657 commit 2008b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql2/graphqlapp/escalationpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func (a *CreateEscalationPolicyStepInput) Actions(ctx context.Context, input *gr
for i, action := range actions {
tgts[i], err = CompatDestToTarget(action)
if err != nil {
return err
validation.NewFieldError("actions", "invalid DestInput")

Check failure on line 39 in graphql2/graphqlapp/escalationpolicy.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `validation.NewFieldError` is not checked (errcheck)
}
}
input.Targets = tgts
Expand Down

0 comments on commit 2008b6b

Please sign in to comment.