add some additional context to the logs when this fails

This commit is contained in:
Kiril Videlov 2024-06-03 22:05:10 +02:00
parent 5fbdd86e5b
commit 828bd31a4a

View File

@ -199,7 +199,9 @@ fn sign_buffer(repo: &git2::Repository, buffer: &String) -> Result<String> {
#[cfg(windows)]
cmd.creation_flags(0x08000000); // CREATE_NO_WINDOW
let mut child = cmd.spawn()?;
let mut child = cmd
.spawn()
.context(anyhow::format_err!("failed to spawn {:?}", cmd))?;
child
.stdin
.take()