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

Add attach and mask functions for joining errors in a different way #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jul 22, 2024

  1. Add attach and mask functions for joining errors in a different way

    The `Attach` and `Mask` functions create a new error node that returns
    the error message from one node, but creates a structure where the
    additional errors are in the error chain and can be discovered with
    `errors.Is` and `errors.As`.
    
    Signed-off-by: Jonathan A. Sternberg <[email protected]>
    jsternberg committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    d82d922 View commit details
    Browse the repository at this point in the history