diff --git a/crates/turborepo-filewatch/src/lib.rs b/crates/turborepo-filewatch/src/lib.rs index 201031e96672e..24da7a61a25e4 100644 --- a/crates/turborepo-filewatch/src/lib.rs +++ b/crates/turborepo-filewatch/src/lib.rs @@ -272,8 +272,9 @@ async fn watch_events( for new_path in &event.paths { if let Err(err) = manually_add_recursive_watches(new_path, &mut watcher, Some(&broadcast_sender)) { match err { - WatchError::WalkDir(_) => { + WatchError::WalkDir(err) => { // Likely the path no longer exists + debug!("encountered error watching filesystem {}", err); continue; }, _ => {