MCPcopy Create free account
hub / github.com/ReviewStage/stage-cli / ghErrorMessage

Function ghErrorMessage

packages/cli/src/github/exec.ts:21–32  ·  view source on GitHub ↗
(err: unknown)

Source from the content-addressed store, hash-verified

19 "gh",
20 args,
21 {
22 cwd,
23 encoding: "utf8",
24 maxBuffer: 10 * 1024 * 1024,
25 timeout: options.timeoutMs,
26 },
27 (error, stdout, stderr) => {
28 if (error) {
29 Object.assign(error, { stdout, stderr });
30 reject(error);
31 } else if (stdinError) reject(stdinError);
32 else resolve(stdout);
33 },
34 );
35 child.stdin?.once("error", (error) => {

Callers 3

ghWriteFunction · 0.85
ghPrViewFunction · 0.85
fetchPullRequestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected