Skip to content

Don't fail if there is at least one error wrapping #5

Closed
golangci/golangci-lint
#1527
@fkorotkov

Description

@fkorotkov

In our codebase we do wrap error to a generic internal error with code like this:

fmt.Errorf("%w: %v", ErrInternal, err)

The linter reports that the second error is not wrapped but that's fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions