Skip to content

Commit

Permalink
[ignore] removed errCode check in utils.go
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahammughal committed Jul 31, 2024
1 parent 24e05e1 commit 5b6255c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func DoRestRequestEscapeHtml(ctx context.Context, diags *diag.Diagnostics, clien

if restResponse != nil && cont.Data() != nil && restResponse.StatusCode != 200 {
errCode := models.StripQuotes(models.StripSquareBrackets(cont.Search("imdata", "error", "attributes", "code").String()))
if errCode != "1" && errCode != "103" && errCode != "107" && errCode != "120" {
if errCode != "103" && errCode != "107" && errCode != "120" {
diags.AddError(
fmt.Sprintf("The %s rest request failed", strings.ToLower(method)),
fmt.Sprintf("Code: %d Response: %s, err: %s.", restResponse.StatusCode, cont.Data().(map[string]interface{})["imdata"], err),
Expand Down

0 comments on commit 5b6255c

Please sign in to comment.