-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.
Description
The package github.com/pkg/errors is now in maintenance mode due to the existence of golang native error wrapping. The goal is to do that on a package-by-package basis, where everyone is welcome to contribute.
Conversion rules
- use the
errorsimport in favor ofgithub.com/pkg/errors - convert
errors.Errorftofmt.Errorf - convert
errors.Wrap(err, "…")tofmt.Errorf("…: %w", err)and check thaterr != nilbefore - convert
errors.Wrapf(err, "… %s: %s", foo, bar)tofmt.Errorf("… %s: %s: %w", foo, bar err)and check thaterr != nilbefore - prefer
errors.Newif no additional format is required - convert
errors.Causetoerrors.Ischecks
Packages to be converted
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.Assist humans wanting to comment on an old issue or PR with locked comments.