Skip to content

Commit 9c9aba6

Browse files
committed
Log file read errors during keyword search instead of silently ignoring them
1 parent d2b591b commit 9c9aba6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/editor/src/commands/search-files-for-context.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,11 @@ const search_files_by_keywords = async (params: {
367367
matched_files.push(file_path)
368368
}
369369
} catch (error) {
370-
// Ignore read errors (binary files, permissions, etc.)
370+
Logger.error({
371+
function_name: 'search_files_by_keywords',
372+
message: `Error reading file during search: ${file_path}`,
373+
data: error
374+
})
371375
}
372376
}
373377

0 commit comments

Comments
 (0)