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

Preserve IO errors in PollWatcher #634

Merged
merged 1 commit into from
Sep 29, 2024
Merged

Conversation

samuelcolvin
Copy link
Contributor

@samuelcolvin samuelcolvin commented Aug 26, 2024

Part of solving #581.

In order to successfully process io::Errors in watchfiles, we need to preserve them as ErrorKind::IO, rather than using ErrorKind::Generic.

@samuelcolvin samuelcolvin changed the title preservev IO errors in PollWatcher Preserve IO errors in PollWatcher Aug 26, 2024
@@ -195,7 +195,10 @@ pub enum RemoveKind {
#[derive(Clone, Copy, Debug, Default, Eq, Hash, PartialEq)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde", serde(rename_all = "kebab-case"))]
#[cfg_attr(all(feature = "serde", not(feature = "serialization-compat-6")), serde(tag = "type"))]
#[cfg_attr(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just running cargo fmt.

@@ -259,25 +259,19 @@ mod data {
.follow_links(true)
.max_depth(Self::dir_scan_depth(is_recursive))
.into_iter()
//
// QUESTION: should we ignore IO Error?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment was left behind when #507 started returning IO Errors.

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.

2 participants