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

Implement std::error::Error for parser::Error. #42

Merged
merged 1 commit into from
Apr 17, 2017
Merged

Implement std::error::Error for parser::Error. #42

merged 1 commit into from
Apr 17, 2017

Conversation

leoschwarz
Copy link
Contributor

This would allow for better interoperability with other error handling crates, particularly with
the error-chain crate.

If you are unhappy with something feel free to tell me, especially if I should change something about the strings.

src/parser.rs Outdated
ExpectedElementName => "expected element name",
ExpectedElementEnd => "expected element end",
ExpectedElementSelfClosed => "expected element self closed",
ExpectedProcessingInstruction => "expected prcosessing instruction",
Copy link
Owner

Choose a reason for hiding this comment

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

Minor typo here

@shepmaster
Copy link
Owner

Thanks so much! I'm a big fan of quick-error myself!

@leoschwarz
Copy link
Contributor Author

I fixed the typo on line 144 in the updated commit. (If I should send them as separate commits in the future, please let me know. I just thought this way there would be less commit log spam.)

@shepmaster shepmaster merged commit 91fcfa9 into shepmaster:master Apr 17, 2017
@shepmaster
Copy link
Owner

Published 0.2.1 with these changes!

@leoschwarz leoschwarz deleted the std-error branch April 18, 2017 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants