diff --git a/src/main.rs b/src/main.rs index 17b1075..ef0671c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,8 +39,10 @@ fn move_file(file: PathBuf, mut destination: PathBuf) { destination.push(file_name); - fs_extra::file::move_file(file, destination, &Default::default()) - .expect("Couldn't move file"); + match fs_extra::file::move_file(file, destination, &Default::default()) { + Ok(_) => println!("OK!"), + Err(e) => println!("Couldn't move file: {:?}", e), + } } fn yes() -> bool {