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

Change serde error string to not imply all errors are parsing errors #353

Merged
merged 1 commit into from Nov 5, 2018

Conversation

mhammond
Copy link
Member

@mhammond mhammond commented Nov 4, 2018

This is a trivial patch which might help prevent some confusion - I saw a serde related error which wasn't related to JSON parsing - for a short time I went down a rabbit hole thinking some parsing code was involved, which it wasn't.

tl;dr - not all serde errors relate to parsing, so the error message shouldn't imply they are.

@mhammond mhammond requested a review from thomcc November 4, 2018 22:36
Copy link
Contributor

@thomcc thomcc left a comment

Choose a reason for hiding this comment

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

Maybe even something implying serialization/deserialization would be more accurate. Either way rs+

@mhammond
Copy link
Member Author

mhammond commented Nov 5, 2018

Maybe even something implying serialization/deserialization would be more accurate

I think "serde" already implies that and less-is-more :)

@mhammond mhammond merged commit edd0941 into mozilla:master Nov 5, 2018
@mhammond mhammond deleted the json-error-string branch February 19, 2020 00:30
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

2 participants