diff options
| author | Dax Raad <[email protected]> | 2025-06-10 10:13:57 -0400 |
|---|---|---|
| committer | Dax Raad <[email protected]> | 2025-06-10 10:14:03 -0400 |
| commit | bb60aa3060d4ae8c870286a7070eab968277d07a (patch) | |
| tree | 7903b32f5a21ead18ad65d77037b951262848cd5 /packages | |
| parent | 34fa8cadd6318f606d676dc7476bee1c97c40be2 (diff) | |
| download | opencode-bb60aa3060d4ae8c870286a7070eab968277d07a.tar.gz opencode-bb60aa3060d4ae8c870286a7070eab968277d07a.zip | |
sync
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/ripgrep/index.ts | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/opencode/src/ripgrep/index.ts b/packages/opencode/src/ripgrep/index.ts index 9c0646976..9e42262b8 100644 --- a/packages/opencode/src/ripgrep/index.ts +++ b/packages/opencode/src/ripgrep/index.ts @@ -73,13 +73,16 @@ export namespace Ripgrep { ], { cwd: Global.Path.bin, - stderr: "ignore", - stdout: "ignore", + stderr: "pipe", + stdout: "pipe", }, ) await proc.exited if (proc.exitCode !== 0) - throw new ExtractionFailedError({ filepath, stderr: proc.stderr }) + throw new ExtractionFailedError({ + filepath, + stderr: await Bun.readableStreamToText(proc.stderr), + }) } if (config.extension === "zip") { const proc = Bun.spawn( @@ -94,7 +97,7 @@ export namespace Ripgrep { if (proc.exitCode !== 0) throw new ExtractionFailedError({ filepath: archivePath, - stderr: proc.stderr, + stderr: await Bun.readableStreamToText(proc.stderr), }) } await fs.unlink(archivePath) |
