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

Report an error when running into i/o errors #63

Merged
merged 1 commit into from
Feb 1, 2023

Conversation

bnjbvr
Copy link
Owner

@bnjbvr bnjbvr commented Jan 17, 2023

Instead of silently swallowing i/o errors when iterating over invalid directories, cargo-machete will now try its best at analyzing every directory it can, and then report an error at the end of the program's execution indicating the i/o errors. It's better in my opinion than the previous behavior, since now there's no way to miss i/o errors (or other issues like #62).

I'm curious if people would prefer to have this behavior be dynamically enabled via a CLI flag (--fail-io-errors) because they have such use cases that i/o errors are unavoidable, or if that change is fine per se.

@bnjbvr bnjbvr changed the title Error when running into i/o errors Report an error when running into i/o errors Jan 17, 2023
@bnjbvr bnjbvr merged commit 00913a8 into main Feb 1, 2023
@bnjbvr bnjbvr deleted the error-on-invalid-directory branch February 1, 2023 16:22
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.

1 participant