Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove usage of fmt.Errorf #4467

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

yeasy
Copy link
Member

@yeasy yeasy commented Oct 4, 2023

The patchset uses the errors pkg to follow the guideline at

https://hyperledger-fabric.readthedocs.io/en/latest/error-handling.html

Change-Id: I36eaac1b429c69195e4af1bb5bb25fc1a2578168

Type of change

  • Improvement (improvement to code, performance, etc)

Description

Remove the usage of fmt.Errorf. Follow the official guideline to change
to the errors package.

Additional details

N/A

Related issues

N/A

Release Note

N/A

The patchset uses the errors pkg to follow the guideline at

https://hyperledger-fabric.readthedocs.io/en/latest/error-handling.html

Change-Id: I36eaac1b429c69195e4af1bb5bb25fc1a2578168
Signed-off-by: Baohua Yang <yangbaohua@gmail.com>
Signed-off-by: Baohua Yang <baohua.yang@oracle.com>
@yeasy yeasy requested a review from a team as a code owner October 4, 2023 21:23
@ale-linux
Copy link
Contributor

I'm not sure these guidelines are still up-to-date, since github.com/pkg/errors has been archived 2 years ago and is effectively a dead project. @denyeart wdyt?

@denyeart
Copy link
Contributor

denyeart commented Oct 5, 2023

@ale-linux I made an initial comment over at #4461 (comment).

I've also opened issue #4468 with more background so that we can discuss a plan in more detail.

My suggestion would be to not make these error handling changes until we've got some more opinions gathered in #4468.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants