Skip to content

[for go-getter v1] use %w instead of %s to wrap error #474

@Ericwww

Description

@Ericwww

Hi all,

I am still working with go-getter v1.7.3.

I found that in this version, %s is used instead of %w when wrapping errors via fmt.Errorf.
As a result, callers of go-getter will not be able to handle errors gracefully through methods such as errors.As or errors.Unwrap.

If you think the above needs to be changed, I will take my effort to make a PR to fix this. 😃😃

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions