mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
Exit
This commit is contained in:
parent
f22e5ebc5a
commit
50cb619a54
1 changed files with 9 additions and 1 deletions
|
@ -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(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue