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

Return source of wrapped errors #943

Closed
wants to merge 1 commit into from
Closed

Return source of wrapped errors #943

wants to merge 1 commit into from

Commits on Oct 9, 2024

  1. Return source of wrapped errors

    The `Display` impl for `Error` wraps the original error received with a
    message, e.g., "Communication error: {original_error_message}". The
    `source` method returns the same error, though, so iterating over the
    error chain will cause the same error message to be printed twice.
    
    Update `source` to return the source error of the original error, not
    our wrapper, to avoid this duplication.
    wfchandler committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    23f8955 View commit details
    Browse the repository at this point in the history