Skip to content

Commit 994e70d

Browse files
minor: improve error message here
Signed-off-by: Soc Virnyl Estela <contact@uncomfyhalomacro.pl>
1 parent 7f320ac commit 994e70d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libroast/src/operations/roast/helpers.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ pub fn filter_paths(
125125
exclude_paths: &[PathBuf],
126126
) -> io::Result<()>
127127
{
128-
let target_dir = fs::read_dir(target_path)?.flatten();
128+
let target_dir = fs::read_dir(target_path)
129+
.inspect_err(|err| {
130+
error!(?err);
131+
})?
132+
.flatten();
129133
target_dir.par_bridge().into_par_iter().try_for_each(|entry| {
130134
let entry_as_path = &entry.path();
131135
let entry_as_path_canonicalized =

0 commit comments

Comments
 (0)