diff options
-rw-r--r-- | xtask/src/command.rs | 6 | ||||
-rw-r--r-- | xtask/src/main.rs | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/xtask/src/command.rs b/xtask/src/command.rs index 93de9cf6..186836b2 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<FinalRunResult>) -> anyhow::Result<()> { +pub fn handle_results(globals: &Globals, results: Vec<FinalRunResult>) -> 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<FinalRunResult>) -> 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 2b45f237..1cc01850 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` |