From 79c5f4cd27402ad8abbec54b278d6ead260dd545 Mon Sep 17 00:00:00 2001 From: orion Date: Mon, 9 Mar 2026 08:53:04 +0000 Subject: [PATCH] fix(pcexec): include stderr in error message for better debugging --- plugin/tools/pcexec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/tools/pcexec.ts b/plugin/tools/pcexec.ts index d7bec3a..339ead2 100644 --- a/plugin/tools/pcexec.ts +++ b/plugin/tools/pcexec.ts @@ -249,7 +249,7 @@ export async function pcexec( command: finalCommand, }); } else { - const error = new Error(`Command failed: ${command}`) as PcExecError; + const error = new Error(`Command failed: ${command}\n${stderr}`) as PcExecError; error.code = code ?? undefined; error.signal = signal ?? undefined; error.stdout = sanitizedStdout; -- 2.49.1