MCPcopy
hub / github.com/compiler-explorer/compiler-explorer / setupOnError

Function setupOnError

lib/exec.ts:68–73  ·  view source on GitHub ↗
(stream: Stream, name: string)

Source from the content-addressed store, hash-verified

66}
67
68function setupOnError(stream: Stream, name: string) {
69 if (stream === undefined) return;
70 stream.on('error', err => {
71 logger.error(`Error with ${name} stream:`, err);
72 });
73}
74
75async function maybeUnbuffer(command: string, args: string[]): Promise<{command: string; args: string[]}> {
76 if (!stdbufPath) {

Callers 3

setupStreamFunction · 0.85
executeDirectFunction · 0.85
asyncSetupFunction · 0.85

Calls 2

errorMethod · 0.80
onMethod · 0.45

Tested by

no test coverage detected