Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

C API: nix_clear_err #10910

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

roberth
Copy link
Member

@roberth roberth commented Jun 14, 2024

Motivation

  • By providing a nix_context error resetting function, the context can be reused more safely.
  • Make nix_err_msg more robust

Context

Priorities and Process

Add 馃憤 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

The documentation "solved" this by specifying a precondition, but
let's just make it more robust, and not leak irrelevant messages
that might linger.
We don't clear the message when clearing the status, in order to
keep clearing fast; see last_err field doc.
@roberth roberth added the c api Nix as a C library with a stable interface label Jun 14, 2024
@roberth roberth requested a review from edolstra as a code owner June 14, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c api Nix as a C library with a stable interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant