@@ -24,7 +24,7 @@ function M.scan_files()
2424
2525 local ok , result = pcall (fuzzy .scan_files )
2626 if not ok then
27- vim .notify (' Failed to trigger file scan: ' .. result , vim .log .levels .ERROR )
27+ vim .notify (' Failed to trigger file scan: ' .. tostring ( result ) , vim .log .levels .ERROR )
2828 return
2929 end
3030
@@ -121,7 +121,7 @@ function M.track_access(file_path)
121121 if not M .state .initialized then return end
122122
123123 local ok , result = pcall (fuzzy .track_access , file_path )
124- if not ok then vim .notify (' Failed to record file access: ' .. result , vim .log .levels .WARN ) end
124+ if not ok then vim .notify (' Failed to record file access: ' .. tostring ( result ) , vim .log .levels .WARN ) end
125125end
126126
127127--- Get file content for preview
@@ -156,7 +156,7 @@ function M.get_scan_progress()
156156
157157 local ok , result = pcall (fuzzy .get_scan_progress )
158158 if not ok then
159- vim .notify (' Failed to get scan progress: ' .. result , vim .log .levels .WARN )
159+ vim .notify (' Failed to get scan progress: ' .. tostring ( result ) , vim .log .levels .WARN )
160160 return { scanned_files_count = 0 , is_scanning = false }
161161 end
162162
@@ -170,7 +170,7 @@ function M.refresh_git_status()
170170
171171 local ok , result = pcall (fuzzy .refresh_git_status )
172172 if not ok then
173- vim .notify (' Failed to refresh git status: ' .. result , vim .log .levels .WARN )
173+ vim .notify (' Failed to refresh git status: ' .. tostring ( result ) , vim .log .levels .WARN )
174174 return {}
175175 end
176176
@@ -185,7 +185,7 @@ function M.stop_background_monitor()
185185
186186 local ok , result = pcall (fuzzy .stop_background_monitor )
187187 if not ok then
188- vim .notify (' Failed to stop background monitor: ' .. result , vim .log .levels .WARN )
188+ vim .notify (' Failed to stop background monitor: ' .. tostring ( result ) , vim .log .levels .WARN )
189189 return false
190190 end
191191 return result
@@ -199,7 +199,7 @@ function M.wait_for_initial_scan(timeout_ms)
199199
200200 local ok , result = pcall (fuzzy .wait_for_initial_scan , timeout_ms )
201201 if not ok then
202- vim .notify (' Failed to wait for initial scan: ' .. result , vim .log .levels .WARN )
202+ vim .notify (' Failed to wait for initial scan: ' .. tostring ( result ) , vim .log .levels .WARN )
203203 return false
204204 end
205205 return result
0 commit comments