1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
This commit is contained in:
Divy Srivastava 2024-11-12 17:46:28 +05:30
parent f22e5ebc5a
commit 50cb619a54

View file

@ -856,6 +856,7 @@ async fn perform_publish(
assert_eq!(prepared_package_by_name.len(), authorizations.len()); assert_eq!(prepared_package_by_name.len(), authorizations.len());
let mut futures: FuturesUnordered<LocalBoxFuture<Result<String, AnyError>>> = let mut futures: FuturesUnordered<LocalBoxFuture<Result<String, AnyError>>> =
Default::default(); Default::default();
let mut has_errors = false;
loop { loop {
let next_batch = publish_order_graph.next(); let next_batch = publish_order_graph.next();
@ -911,12 +912,19 @@ async fn perform_publish(
publish_order_graph.finish_package(&package_name); publish_order_graph.finish_package(&package_name);
} }
Err(err) => { Err(err) => {
has_errors = true;
#[allow(clippy::print_stderr)] #[allow(clippy::print_stderr)]
eprintln!("{}: {}", colors::red("Error publishing"), err); {
eprintln!("{}: {}", colors::red("Error publishing"), err);
}
} }
} }
} }
if has_errors {
std::process::exit(1);
}
Ok(()) Ok(())
} }