Skip to content

Explicitly call Context::set_last_error in ffi #4195

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

Merged
merged 1 commit into from
Mar 21, 2023
Merged

Conversation

flub
Copy link
Contributor

@flub flub commented Mar 21, 2023

This adds a result extension trait to explicitly set the last error,
which should be the default for the FFI. Currently not touching all
APIs since that's potentially disruptive and we're close to a release.

The logging story is messy, as described in the doc comment. We
should further clean this up and tidy up these APIs so it's more
obvious to people how to do the right thing.


This is an alternative to #4187, hopefully addressing @Hocuri's
fears. I believe these APIs need further cleaning up as described,
but let's leave that for after the release.

Closes #4186, #4178

Since this now does not affect anything other than core-internal:
#skip-changelog

This adds a result extension trait to explicitly set the last error,
which *should* be the default for the FFI.  Currently not touching all
APIs since that's potentially disruptive and we're close to a release.

The logging story is messy, as described in the doc comment.  We
should further clean this up and tidy up these APIs so it's more
obvious to people how to do the right thing.
@flub flub merged commit 9c15cd5 into master Mar 21, 2023
@flub flub deleted the flub/ffi-set-last-error branch March 21, 2023 12:37
@Hocuri
Copy link
Collaborator

Hocuri commented Mar 21, 2023

Nice 🎉!

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.

failing dc_receive_backup() lacks last error set
3 participants