diff --git a/xtask/src/command.rs b/xtask/src/command.rs index 93de9cf65a..186836b201 100644 --- a/xtask/src/command.rs +++ b/xtask/src/command.rs @@ -771,7 +771,7 @@ pub fn run_successful(run: &RunResult, expected_output_file: &str) -> Result<(), } } -pub fn handle_results(globals: &Globals, results: Vec) -> anyhow::Result<()> { +pub fn handle_results(globals: &Globals, results: Vec) -> Result<(), ()> { let errors = results.iter().filter_map(|r| { if let FinalRunResult::Failed(c, r) = r { Some((c, r)) @@ -842,8 +842,10 @@ pub fn handle_results(globals: &Globals, results: Vec) -> anyhow let ecount = errors.count(); if ecount != 0 { - Err(anyhow::anyhow!("{ecount} commands failed.")) + log::error!("{ecount} commands failed."); + Err(()) } else { + info!("🚀🚀🚀 All tasks succeeded 🚀🚀🚀"); Ok(()) } } diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 2b45f23793..1cc01850dc 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -298,7 +298,7 @@ fn main() -> anyhow::Result<()> { } }; - handle_results(globals, final_run_results) + handle_results(globals, final_run_results).map_err(|_| anyhow::anyhow!("Commands failed")) } // run example binary `example`