Skip to content

Commit b54da6c

Browse files
committed
fix: error handling
1 parent d83b7e4 commit b54da6c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ fn main() {
113113
content_to_recover.push(entry);
114114
}
115115
}
116-
trash::os_limited::restore_all(content_to_recover);
116+
if let Err(e) = trash::os_limited::restore_all(content_to_recover) {
117+
eprintln!("Error recovering items: {e}");
118+
}
117119
}
118120
}
119121

0 commit comments

Comments
 (0)