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

Proper error handling. #18

Open
chaichontat opened this issue Aug 23, 2021 · 0 comments · May be fixed by #19
Open

Proper error handling. #18

chaichontat opened this issue Aug 23, 2021 · 0 comments · May be fixed by #19
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@chaichontat
Copy link
Owner

Application should not panic unless there is a bug. In that case, use expect to state the invariant that is broken for easier debugging.

Otherwise, use Result for fallible functions from user input. Use the anyhow crate to provide context.

@chaichontat chaichontat linked a pull request Aug 23, 2021 that will close this issue
@chaichontat chaichontat added this to the 2018 Endgame milestone Aug 23, 2021
@chaichontat chaichontat added the enhancement New feature or request label Aug 23, 2021
@chaichontat chaichontat self-assigned this Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant