feat: with nonzero exit code
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
0deb6f83a0
commit
050d599d81
@ -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(())
|
||||
|
Loading…
Reference in New Issue
Block a user