From 600918a27e01d809ccd38a1e747aea5e4a1be64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sun, 7 Aug 2022 12:35:49 +0200 Subject: [PATCH] chore: log failed path updates immediately --- src/filesystem.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/filesystem.rs b/src/filesystem.rs index a58876f..49aac00 100644 --- a/src/filesystem.rs +++ b/src/filesystem.rs @@ -162,7 +162,10 @@ fn rescan_vault_inner>( match result { Ok(result) => result, - Err(error) => UpdatePathOutcome::Failed(path, error), + Err(error) => { + error!("Failed to update {:?} ({})", path, error); + UpdatePathOutcome::Failed(path, error) + } } }) .collect();