Skip to content

Commit

Permalink
🧹 Log out integration MRN when AWS integration deletion fails. (#128)
Browse files Browse the repository at this point in the history
Signed-off-by: Preslav <[email protected]>
  • Loading branch information
preslavgerchev authored Aug 7, 2024
1 parent 4694610 commit a889733
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/provider/integration_aws_serverless_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ func (r *integrationAwsServerlessResource) Delete(ctx context.Context, req resou

_, err := r.client.DeleteIntegration(ctx, data.Mrn.ValueString())
if err != nil {
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to delete AWS serverless integration, got error: %s", err))
resp.Diagnostics.AddError("Client Error", fmt.Sprintf("Unable to delete AWS serverless integration '%s', got error: %s", data.Mrn.ValueString(), err.Error()))
return
}
}
Expand Down

0 comments on commit a889733

Please sign in to comment.