fix stuff

This commit is contained in:
Kasper Juul Hermansen 2022-08-14 22:10:58 +02:00
parent 0ec196e8c9
commit 581404c622
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

View File

@ -56,11 +56,14 @@ Starting running shell action: {}
} }
Some(n) => { Some(n) => {
log::info!("process exited with code: {}", n); log::info!("process exited with code: {}", n);
return Err(anyhow::anyhow!(
"{} exited with: {}", if n > 0 {
path.clone().to_string_lossy(), return Err(anyhow::anyhow!(
n "{} exited with: {}",
)); path.clone().to_string_lossy(),
n
));
}
} }
} }