We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 250fd83 commit e0dbbdaCopy full SHA for e0dbbda
src/main.rs
@@ -122,11 +122,17 @@ fn main() {
122
123
println!("Starting cleanup...");
124
125
- projects
126
- .iter()
127
- .for_each(|p| remove_dir_all::remove_dir_all(&p.project_path.join("target")).unwrap());
+ projects.iter().for_each(|p| {
+ match remove_dir_all::remove_dir_all(&p.project_path.join("target")) {
+ Ok(_) => println!("- Successfully cleaned {}", p.project_path.display()),
128
+ Err(err) => {
129
+ println!("- Failed to clean {}", p.project_path.display());
130
+ println!(" Error: {}", err);
131
+ }
132
133
+ });
134
- println!("Done!");
135
+ println!("\nDone!");
136
}
137
138
/// Job for the threaded project finder. First the path to be searched, second the sender to create
0 commit comments