refactor: handle errors
This commit is contained in:
parent
b7fc64a3a5
commit
e952225ec6
1 changed files with 3 additions and 2 deletions
|
@ -93,8 +93,9 @@ fn main() {
|
|||
for selection in actual_selection {
|
||||
// TODO: forget the assumption that the user won't try to sort like 100 dirs at the same
|
||||
// time
|
||||
let thread = thread::spawn(move || {
|
||||
let _ = sort_files(selection, false); // TODO: handle errors
|
||||
let thread = thread::spawn(move || match sort_files(selection, false) {
|
||||
Ok(_) => {}
|
||||
Err(err) => eprintln!("{}", err),
|
||||
});
|
||||
|
||||
thread_pool.push(thread);
|
||||
|
|
Loading…
Reference in a new issue