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

Error Handling Improvements #26

Closed
jhwgh1968 opened this issue Jul 18, 2021 · 1 comment · Fixed by #33
Closed

Error Handling Improvements #26

jhwgh1968 opened this issue Jul 18, 2021 · 1 comment · Fixed by #33

Comments

@jhwgh1968
Copy link
Collaborator

Looking at my own library uses, there is one more thing I'd like to see before releasing a 0.3 version: better errors.

Right now, all parse errors and all I/O errors return the same information. This means doing smart error handling besides "just return it to the caller" is not easy, and printing out error information is not very useful. If there is an I/O error reading from the file, for instance, we have no way to give useful information about it back.

I would also make sure that we are following the error handling guidelines for the future of Rust.

@jedireza
Copy link
Owner

Sounds great.

I would also make sure that we are following the error handling guidelines for the future of Rust.

Agreed.

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 a pull request may close this issue.

2 participants