We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b17a135 commit b194120Copy full SHA for b194120
src/cleanup.rs
@@ -29,7 +29,13 @@ pub async fn clean_up_old_previews(target_dir: &Path,
29
&preview_path,
30
last_modified,
31
retention_days);
32
- fs::remove_dir_all(&preview_path)?;
+ if let Err(e) = fs::remove_dir_all(&preview_path) {
33
+ // PermissionError does not report the failing path
34
+ // Showing it here in the logs
35
+ log::error!("Unable to delete {:?}", &preview_path);
36
+ return Err(errors::PreviewerError::IOError(e));
37
+
38
+ }
39
deletion_counter += 1;
40
}
41
0 commit comments