We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08be98f commit 44f72e7Copy full SHA for 44f72e7
src/sql.rs
@@ -914,13 +914,17 @@ pub async fn remove_unused_files(context: &Context) -> Result<()> {
914
continue;
915
}
916
917
- let Ok(stats) = tokio::fs::metadata(entry.path()).await else {
918
- warn!(
919
- context,
920
- "Cannot get metadata for {}.",
921
- entry.path().display()
922
- );
923
- continue;
+ let stats = match tokio::fs::metadata(entry.path()).await {
+ Err(err) => {
+ warn!(
+ context,
+ "Cannot get metadata for {}: {:#}.",
+ entry.path().display(),
+ err
924
+ );
925
+ continue;
926
+ }
927
+ Ok(stats) => stats,
928
};
929
930
if stats.is_dir() {
0 commit comments