From 19a455ee5e0b01af2b02ef566364bd6f8bdaa436 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Fri, 22 Sep 2023 14:23:29 -0700 Subject: [PATCH] print wget exit status --- src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index bcb04fc..d9fc3c2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -189,8 +189,9 @@ fn download(map_list: Vec) -> BoxResult<()>{ .spawn() }).collect(); //naively wait for all because idk how to make an async progress bar lmao - for mut child in processes_result?{ - child.wait()?; + for child in processes_result?{ + let output=child.wait_with_output()?; + println!("map exit_success:{}",output.status.success()); } Ok(()) }