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’ll 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

Commits on Jun 14, 2024

  1. C API: Add nix_clear_err

    roberth committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    2dc7598 View commit details
    Browse the repository at this point in the history
  2. C API: Make nix_err_msg treat NIX_OK as having no message

    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 committed Jun 14, 2024
    Configuration menu
    Copy the full SHA
    61381c9 View commit details
    Browse the repository at this point in the history