feat: with nonzero exit code
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-01-31 20:26:32 +01:00
parent 0deb6f83a0
commit 050d599d81
Signed by: kjuulh
GPG Key ID: 9AA7BC13CE474394

View File

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