Skip to content

Commit ac20893

Browse files
committed
ipc: impossible possible concepts
1 parent 9ae1a2c commit ac20893

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs-viewer/src/preview-docs.ts

+8
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ async function cloneRepo(details: ReturnType<typeof repoDetails>) {
100100
const proc = Bun.spawn(['git', 'clone', details.gitUrl, relativePath, '--depth=1'], {
101101
cwd: docsViewerRoot,
102102
stdin: 'inherit',
103+
stdout: 'pipe',
104+
stderr: 'pipe',
103105
});
104106
const exitCode = await proc.exited;
105107

@@ -114,6 +116,12 @@ async function cloneRepo(details: ReturnType<typeof repoDetails>) {
114116
});
115117
await proc2.exited;
116118
} else {
119+
console.log({
120+
reason,
121+
exitCode,
122+
stdout: await new Response(proc.stdout).text(),
123+
});
124+
117125
throw new Error(reason);
118126
}
119127
}

0 commit comments

Comments
 (0)