Skip to content

Commit

Permalink
Catch missing id on data services (#257)
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Hoppe <robert.hoppe@mail.schwarz>
  • Loading branch information
roberth1988 and Robert Hoppe authored Nov 21, 2024
1 parent fa2be2e commit 748d019
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 748d019

Please sign in to comment.