From 2fd788d3ef1cde8555f37f293b223adef95c158e Mon Sep 17 00:00:00 2001 From: Factory Droid Date: Mon, 19 Jan 2026 20:39:55 +0400 Subject: [PATCH] Fix indexer silently swallowing file errors --- src/core/indexer.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/core/indexer.rs b/src/core/indexer.rs index 469c120..9aed11a 100644 --- a/src/core/indexer.rs +++ b/src/core/indexer.rs @@ -101,7 +101,11 @@ impl Indexer { pending_files.push(pending); } Ok(None) => skipped += 1, - Err(_) => skipped += 1, + Err(e) => { + let error_msg = format!("Failed to read file {}: {}", file_path.display(), e); + pb.println(format!(" {} {}", ui::WARN, style(error_msg).yellow())); + skipped += 1; + } } pb.inc(1); @@ -469,7 +473,11 @@ impl ServerIndexer { pending_files.push(pending); } Ok(None) => skipped += 1, - Err(_) => skipped += 1, + Err(e) => { + let error_msg = format!("Failed to read file {}: {}", file_path.display(), e); + pb.println(format!(" {} {}", ui::WARN, style(error_msg).yellow())); + skipped += 1; + } } pb.inc(1);