Skip to content

Add missing post-AddError(...) returns where necessary #1874

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

lgarber-akamai
Copy link
Contributor

@lgarber-akamai lgarber-akamai commented May 13, 2025

📝 Description

This pull request implements excluded returns after resp.Diagnostics.AddError(...) calls wherever necessary, which will prevent segmentation faults and data synchronization errors when certain errors occur.

Integration test run (in progress at time of writing): https://github.com/linode/terraform-provider-linode/actions/runs/15004686402/job/42160213562

✔️ How to Test

The following test steps assume you have pulled down this PR locally.

Unit Testing

make test-unit

Integration Testing

make test-int

Manual Testing

N/A

@lgarber-akamai lgarber-akamai requested a review from a team as a code owner May 13, 2025 19:05
@lgarber-akamai lgarber-akamai added the bugfix for any bug fixes in the changelog. label May 13, 2025
@lgarber-akamai lgarber-akamai requested review from zliang-akamai and ykim-akamai and removed request for a team May 13, 2025 19:05
Copy link
Member

@zliang-akamai zliang-akamai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for correcting them!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix for any bug fixes in the changelog.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants