refactor: use with_context for process spawning error handling
This commit is contained in:
@@ -51,7 +51,7 @@ impl DigestEngine for DigestEngineProgram {
|
|||||||
.stdin(Stdio::piped())
|
.stdin(Stdio::piped())
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.spawn()
|
.spawn()
|
||||||
.context(anyhow!(
|
.with_context(|| anyhow!(
|
||||||
"Problem spawning child process: {:?} {:?}",
|
"Problem spawning child process: {:?} {:?}",
|
||||||
program,
|
program,
|
||||||
args
|
args
|
||||||
|
|||||||
Reference in New Issue
Block a user