Skip to content

Commit 939f3aa

Browse files
committed
feat: add error loggin for failed file scans
1 parent a952d36 commit 939f3aa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/scan.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ pub fn scan_for_music(
7777
pb.inc(1);
7878
Some((path.clone(), metadata))
7979
}
80-
Err(_) => {
80+
Err(err) => {
81+
eprintln!(
82+
" Failed to extract metadata from {}: {}",
83+
path.display(),
84+
err
85+
);
8186
*failed_extractions.lock().unwrap() += 1;
8287
pb.inc(1);
8388
None

0 commit comments

Comments
 (0)