Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
main: return 1 if any task in bulk downloading fails
Browse files Browse the repository at this point in the history
  • Loading branch information
khyerdev committed Apr 21, 2024
1 parent 1283221 commit f27a799
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ async fn main() -> std::process::ExitCode {
});

futures::future::join_all(futures_array).await;

if failed.read().await.clone() == true {
return std::process::ExitCode::FAILURE;
}
},
args::types::Method::List => println!("{}", tcargs::strings::get_mod("supported")),
args::types::Method::Help => unreachable!(),
Expand Down

0 comments on commit f27a799

Please sign in to comment.