diff --git a/tools/src/publish.rs b/tools/src/publish.rs index 0f8935f7..b6002293 100644 --- a/tools/src/publish.rs +++ b/tools/src/publish.rs @@ -66,6 +66,8 @@ pub fn publish(matches: &ArgMatches) -> Result<(), Error> { .arg("publish") .current_dir(&root_directory.join(publishable_crate)) .spawn() + .map_err(|_| Error::PublishCrate)? + .wait() .map_err(|_| Error::PublishCrate)?; } diff --git a/tools/src/release.rs b/tools/src/release.rs index 34e1225d..1b35697e 100644 --- a/tools/src/release.rs +++ b/tools/src/release.rs @@ -56,6 +56,8 @@ pub fn release(matches: &clap::ArgMatches) -> Result<(), Error> { Command::new("just") .arg("ci") .spawn() + .map_err(|_| Error::JustCiFailed)? + .wait() .map_err(|_| Error::JustCiFailed)?; if !dry_run {