@@ -265,7 +265,7 @@ func (r *sourceResource) Create(ctx context.Context, req resource.CreateRequest,
265265 if err != nil {
266266 resp .Diagnostics .AddError (
267267 "Unable to create Source" ,
268- getError (err , body . Body ),
268+ getError (err , body ),
269269 )
270270 return
271271 }
@@ -280,7 +280,7 @@ func (r *sourceResource) Create(ctx context.Context, req resource.CreateRequest,
280280 if err != nil {
281281 resp .Diagnostics .AddError (
282282 "Unable to create Source" ,
283- getError (err , body . Body ),
283+ getError (err , body ),
284284 )
285285 return
286286 }
@@ -321,7 +321,7 @@ func (r *sourceResource) Read(ctx context.Context, req resource.ReadRequest, res
321321 if err != nil {
322322 resp .Diagnostics .AddError (
323323 "Unable to read Source" ,
324- getError (err , body . Body ),
324+ getError (err , body ),
325325 )
326326 return
327327 }
@@ -378,7 +378,7 @@ func (r *sourceResource) Update(ctx context.Context, req resource.UpdateRequest,
378378 if err != nil {
379379 resp .Diagnostics .AddError (
380380 "Unable to update Source" ,
381- getError (err , body . Body ),
381+ getError (err , body ),
382382 )
383383 return
384384 }
@@ -399,7 +399,7 @@ func (r *sourceResource) Update(ctx context.Context, req resource.UpdateRequest,
399399 if err != nil {
400400 resp .Diagnostics .AddError (
401401 "Unable to update Source" ,
402- getError (err , body . Body ),
402+ getError (err , body ),
403403 )
404404 return
405405 }
@@ -437,7 +437,7 @@ func (r *sourceResource) Delete(ctx context.Context, req resource.DeleteRequest,
437437 if err != nil {
438438 resp .Diagnostics .AddError (
439439 "Unable to delete Source" ,
440- getError (err , body . Body ),
440+ getError (err , body ),
441441 )
442442 return
443443 }
0 commit comments