From 1e43a5e855ea0b4e42db6f610c129861d0e499c0 Mon Sep 17 00:00:00 2001 From: "Andrew Phillips (aider)" Date: Mon, 12 May 2025 22:04:33 -0300 Subject: [PATCH] refactor: use with_context for process spawning error handling --- src/digest_engine/program.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/digest_engine/program.rs b/src/digest_engine/program.rs index 6cef80a..0d1f50b 100644 --- a/src/digest_engine/program.rs +++ b/src/digest_engine/program.rs @@ -51,7 +51,7 @@ impl DigestEngine for DigestEngineProgram { .stdin(Stdio::piped()) .stdout(Stdio::piped()) .spawn() - .context(anyhow!( + .with_context(|| anyhow!( "Problem spawning child process: {:?} {:?}", program, args