Skip to content

Commit

Permalink
error message corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
diab42 committed Nov 11, 2024
1 parent 1bbf897 commit bced4ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datadog/fwprovider/resource_datadog_domain_allowlist.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func (r *domainAllowlistResource) Create(ctx context.Context, request resource.C
domainAllowlistReq, _ := buildDomainAllowlistUpdateRequest(state)
resp, httpResp, err := r.Api.PatchDomainAllowlist(r.Auth, *domainAllowlistReq)
if err != nil {
response.Diagnostics.Append(utils.FrameworkErrorDiag(utils.TranslateClientError(err, httpResp, ""), "error updating email domain allowlist"))
response.Diagnostics.Append(utils.FrameworkErrorDiag(utils.TranslateClientError(err, httpResp, ""), "error creating domain allowlist"))
return
}

Expand Down Expand Up @@ -134,7 +134,7 @@ func (r *domainAllowlistResource) Update(ctx context.Context, request resource.U
}
resp, httpResp, err := r.Api.PatchDomainAllowlist(r.Auth, *domainAllowlistReq)
if err != nil {
response.Diagnostics.Append(utils.FrameworkErrorDiag(utils.TranslateClientError(err, httpResp, " error updating domain allowlist"), ""))
response.Diagnostics.Append(utils.FrameworkErrorDiag(utils.TranslateClientError(err, httpResp, "error updating domain allowlist"), ""))
return
}
if err := utils.CheckForUnparsed(resp); err != nil {
Expand Down

0 comments on commit bced4ab

Please sign in to comment.