Skip to content

Commit

Permalink
Catch missing id on data services
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Hoppe committed Nov 21, 2024
1 parent fa2be2e commit 473d68f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ func (r Resource) Read(ctx context.Context, req resource.ReadRequest, resp *reso

if res.JSON200 == nil {
resp.Diagnostics.AddError("failed to process client response", "Credentials response is empty")
return
}

if err := r.applyClientResponse(ctx, &cred, res.JSON200); err != nil {
Expand Down

0 comments on commit 473d68f

Please sign in to comment.