1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -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());
let mut futures: FuturesUnordered<LocalBoxFuture<Result<String, AnyError>>> =
Default::default();
let mut has_errors = false;
loop {
let next_batch = publish_order_graph.next();
@ -911,11 +912,18 @@ async fn perform_publish(
publish_order_graph.finish_package(&package_name);
}
Err(err) => {
has_errors = true;
#[allow(clippy::print_stderr)]
{
eprintln!("{}: {}", colors::red("Error publishing"), err);
}
}
}
}
if has_errors {
std::process::exit(1);
}
Ok(())
}