Skip to content

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

Merged
bnjbvr merged 1 commit into
mainfrom
error-on-invalid-directory
Feb 1, 2023
Merged

Report an error when running into i/o errors#63
bnjbvr merged 1 commit into
mainfrom
error-on-invalid-directory

Conversation

@bnjbvr

@bnjbvr bnjbvr commented Jan 17, 2023

Copy link
Copy Markdown
Owner

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