Skip to content

Proposal: flag.failf should return an error with Cause() error #18303

@tejasmanohar

Description

@tejasmanohar

It would be very nice if flag.failf returned an error with a Cause() so that if you define your own flag.Value-implementing type, you don't lose context on errors you return out of its Set function here.

I would definitely be willing to open a patch if whoever's in charge agrees on the design. :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions