Skip to content

Improve error resilience by collecting errors and returning them all#30

Open
andsens wants to merge 2 commits intolibdns:mainfrom
orbit-online:ft-error-resilience
Open

Improve error resilience by collecting errors and returning them all#30
andsens wants to merge 2 commits intolibdns:mainfrom
orbit-online:ft-error-resilience

Conversation

@andsens
Copy link
Contributor

@andsens andsens commented Mar 10, 2026

Based on #29.

This change modifies all API functions to collect errors while performing individual API calls and then returning those errors when the changeset is done. I've taken care not to return any records that encountered errors.

This doesn't fundamentally change how the API behaves outwardly, since whether the some calls fail early all depends on the ordering of the records.
It does however make it so that even when errors are returned, the caller can see which records were successfully changed (previously nil was just returned, instead of results).

@andsens andsens force-pushed the ft-error-resilience branch from 710e7a7 to b7cb260 Compare March 10, 2026 13:16
@andsens andsens mentioned this pull request Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant