Skip to content

Stringer for ErrClass and ErrCode ? #543

Closed
@slyphon

Description

@slyphon

The functionality might already exist somewhere, but it seems like it'd be useful for error reporting to make a stringer for ErrClass and ErrCode to return human-readable names for the corresponding constants.

It'd mean that go generate would have to be run when the relevant constants were changed, but it seems like this should be relatively easy to do.

Would you accept a pull request that set this up?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions