Skip to content

Commit

Permalink
Fix incorrect error message for data source restful_resource on rea…
Browse files Browse the repository at this point in the history
…d error
  • Loading branch information
magodo committed Mar 22, 2023
1 parent a45e429 commit fc6a636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (d *DataSource) Read(ctx context.Context, req datasource.ReadRequest, resp
return
}
resp.Diagnostics.AddError(
fmt.Sprintf("Create API returns %d", response.StatusCode()),
fmt.Sprintf("Read API returns %d", response.StatusCode()),
string(response.Body()),
)
return
Expand Down

0 comments on commit fc6a636

Please sign in to comment.