Skip to content

Use thiserror for decode error handling#228

Merged
nilssonk merged 1 commit intomasterfrom
thiserror
Jan 18, 2025
Merged

Use thiserror for decode error handling#228
nilssonk merged 1 commit intomasterfrom
thiserror

Conversation

@nilssonk
Copy link
Copy Markdown
Owner

ResultStr has since the beginning been a trivial placeholder type until real error codes could be instituted. This change starts (and nearly completes) the error code conversion of the codebase. This is a breaking change for the greater good.

While working on this I also changed the signature of some of the decoding functions to instead return a Vec of errors. That means e.g. AVP errors should now actually be propagated to the end user.

ResultStr has since the beginning been a trivial placeholder type until
real error codes could be instituted. This change starts (and nearly
completes) the error code conversion of the codebase. This is a breaking
change for the greater good.

While working on this I also changed the signature of some of the
decoding functions to instead return a Vec of errors. That means e.g.
AVP errors should now actually be propagated to the end user.
@nilssonk nilssonk merged commit d34563d into master Jan 18, 2025
@nilssonk nilssonk deleted the thiserror branch January 18, 2025 20:52
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