Edit log message as suggested

This commit is contained in:
Benoît du Garreau 2021-12-13 18:52:13 +01:00
parent 287896facd
commit 8cf871f449

View File

@ -38,7 +38,11 @@ impl Source for FileSystem {
Err(err) => {
if err.kind() != io::ErrorKind::NotFound {
let path = dir.path_of(DirEntry::File(id, ext));
tracing::warn!("Error reading \"{}\": {}", path.display(), err);
tracing::warn!(
"Error reading \"{}\": {}. Falling back to default",
path.display(),
err
);
}
},
}
@ -55,7 +59,11 @@ impl Source for FileSystem {
Err(err) => {
if err.kind() != io::ErrorKind::NotFound {
let path = dir.path_of(DirEntry::Directory(id));
tracing::warn!("Error reading \"{}\": {}", path.display(), err);
tracing::warn!(
"Error reading \"{}\": {}. Falling back to default",
path.display(),
err
);
}
},
}