-
Notifications
You must be signed in to change notification settings - Fork 636
chore: export p2p package errors #1901
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
chore: export p2p package errors #1901
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @Tikaryan ❤️
As a general comment here, one of the points of exporting errors (types instead of strings) is to improve testing. Some test units (not most, unfortunately), attest the production of an error in certain scenarios. The introduced errors should thus be used in the existing test units. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good. Made suggestions for improvements or comments about reverting some changes (especially for messages). Ideally some tests could benefit of using the exported errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, fixed code in suggestions and comments
This PR Contributes to: #1140
Changes:
p2p
package