Stringer for ErrClass and ErrCode ? #543
Labels
No Label
bug
duplicate
enhancement
invalid
question
up for grabs
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: jcarr/git2go#543
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
there's precedent for that (e.g. #523) so PR away!
now that you mention it, it may be worth adding an Action to check whether all the
go generate
d files are up to date. that we can do separately.