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(())