Skip to content

refactor: Use a more engineering-oriented error code wrapper#55

Open
lyt122 wants to merge 1 commit intoCocaineCong:mainfrom
lyt122:fix-issue-48
Open

refactor: Use a more engineering-oriented error code wrapper#55
lyt122 wants to merge 1 commit intoCocaineCong:mainfrom
lyt122:fix-issue-48

Conversation

@lyt122
Copy link
Contributor

@lyt122 lyt122 commented Dec 27, 2023

Use "github.com/pkg/errors" to wrap error. In a word, If a function doesn't need to return an error, print the error and stack information with logrus, otherwise wrap the error and append some information.

@CocaineCong
Copy link
Owner

so many changes... can you cut this big pr into small pr?

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.

2 participants