MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / execErrorStdout

Function execErrorStdout

packages/cli/src/browser/linuxDeps.ts:240–245  ·  view source on GitHub ↗

Extract captured stdout from a child-process error, if present, as a string.

(err: unknown)

Source from the content-addressed store, hash-verified

238
239/** Extract captured stdout from a child-process error, if present, as a string. */
240function execErrorStdout(err: unknown): string | undefined {
241 if (typeof err !== "object" || err === null || !("stdout" in err)) return undefined;
242 const stdout = (err as { stdout?: string | Buffer | null }).stdout;
243 if (stdout == null) return undefined;
244 return stdout.toString();
245}
246
247/**
248 * Run `ldd <chromeBinary>` and report any shared libraries the dynamic linker

Callers 1

probeChromeSharedLibsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected