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 Display for Error #53

Merged
merged 2 commits into from
Jul 16, 2020
Merged

Conversation

cccs-sadugas
Copy link
Contributor

Pull Request Overview

Useful for printing out error messages to users.

This is needed by future versions of #51 .

Testing Strategy

This pull request was tested by...

  • Added relevant unit tests.
  • Added relevant end-to-end tests (such as .lzma, .lzma2, .xz files).

Already covered by existing test cases

@cccs-sadugas cccs-sadugas mentioned this pull request Jul 14, 2020
2 tasks
@cccs-sadugas cccs-sadugas mentioned this pull request Jul 14, 2020
4 tasks
Copy link
Owner

@gendx gendx 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 it would also be useful to implement the std::error::Error trait (essentially implementing the source() method to return Some(e) in case of IO error and None otherwise).

src/error.rs Outdated Show resolved Hide resolved
Useful for printing out error messages to users.
Makes sense because this is an error value in a Result<T, E>.
@gendx gendx merged commit 9908915 into gendx:master Jul 16, 2020
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.

2 participants