From 050d599d819b6bbc3033cdb4baac4dfd008bd2bb Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 31 Jan 2024 20:26:32 +0100 Subject: [PATCH] feat: with nonzero exit code Signed-off-by: kjuulh --- crates/cuddle-ci/src/cuddle_x.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/cuddle-ci/src/cuddle_x.rs b/crates/cuddle-ci/src/cuddle_x.rs index 82c7a1c..3eadcae 100644 --- a/crates/cuddle-ci/src/cuddle_x.rs +++ b/crates/cuddle-ci/src/cuddle_x.rs @@ -36,7 +36,7 @@ pub mod well_known { pub async fn render() -> eyre::Result<()> { tracing::info!("running render"); - let (stdout, stderr, _) = CuddleX::command("render").run().await?; + let (stdout, stderr, status) = CuddleX::command("render").run().await?; for line in stdout.lines() { tracing::trace!("render: {}", line); @@ -46,6 +46,10 @@ pub mod well_known { tracing::trace!("render: {}", line); } + if status != 0 { + tracing::warn!("finished render with non-zero exit code: {}", status); + } + tracing::info!("finished running render"); Ok(())