mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -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());
|
||||
let mut futures: FuturesUnordered<LocalBoxFuture<Result<String, AnyError>>> =
|
||||
Default::default();
|
||||
let mut has_errors = false;
|
||||
loop {
|
||||
let next_batch = publish_order_graph.next();
|
||||
|
||||
|
@ -911,12 +912,19 @@ 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);
|
||||
{
|
||||
eprintln!("{}: {}", colors::red("Error publishing"), err);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if has_errors {
|
||||
std::process::exit(1);
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue