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

chore: improve some error messages #1183

Merged

Conversation

yjhmelody
Copy link
Contributor

No description provided.

@yjhmelody yjhmelody requested a review from a team as a code owner September 30, 2023 11:37
Copy link
Contributor

@tadeohepperle tadeohepperle left a comment

Choose a reason for hiding this comment

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

I think this is good, thanks!

Copy link
Collaborator

@lexnv lexnv left a comment

Choose a reason for hiding this comment

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

Lgtm! Thanks for contributing!

@@ -73,7 +73,7 @@ pub enum Error {
Unknown(Vec<u8>),
/// Light client error.
#[cfg(feature = "unstable-light-client")]
#[error("An error occurred but it could not be decoded: {0:?}")]
#[error("An error occurred but it could not be decoded: {0}")]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd be interested to know if this is something you've encountered in the wild

@@ -73,7 +73,7 @@ pub enum Error {
Unknown(Vec<u8>),
/// Light client error.
#[cfg(feature = "unstable-light-client")]
#[error("An error occurred but it could not be decoded: {0:?}")]
#[error("An error occurred but it could not be decoded: {0}")]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#[error("An error occurred but it could not be decoded: {0}")]
#[error("Light Client error: {0}")]

@tadeohepperle tadeohepperle merged commit 958ff56 into paritytech:master Oct 2, 2023
9 checks passed
@yjhmelody yjhmelody deleted the chore-improve-error-message branch October 2, 2023 11:21
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.

3 participants