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

Improve error messages and stdin error handling #73

Merged
merged 2 commits into from
May 4, 2022

Conversation

superatomic
Copy link
Owner

Fixes #72 by displaying an error message instead of panicking and improves upon #34.

Make `display_file_error` take a file name as a `&str` and a bool for
whether the file option was set instead of passing the file as a `&Path`
and the full CLI options.

Make the error message for `display_file_error` better and more
informative.
@superatomic superatomic added bug Something isn't working enhancement New feature or request panic The program is crashing refactor Changes to code layout or structure labels May 4, 2022
@superatomic superatomic added this to the v0.5.0 milestone May 4, 2022
@superatomic superatomic merged commit 50aa153 into main May 4, 2022
@superatomic superatomic deleted the improve-error-messages-and-stdin-error-handling branch May 4, 2022 03:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request panic The program is crashing refactor Changes to code layout or structure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash occurs when failing to read invalid piped input data
1 participant