Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

chore(err): remove qp2p error as a public type #2466

Closed

Conversation

Dylan-DPC-zz
Copy link
Contributor

removes qp2p errors as being exported and converts them into custom errors

Comment on lines +28 to +31
#[error("The config is invalid")]
InvalidConfig,
#[error("Cannot connect to the endpoint")]
CannotConnectEndpoint,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps we could add some context to these errors to help identify the cause using:
.map_err(|err| ErrorVariant(err.to_string()))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeh will do that as part of the next step as I need to do it to the other variants as well

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

Successfully merging this pull request may close these issues.

None yet

3 participants