(stream: Stream, name: string)
| 66 | } |
| 67 | |
| 68 | function 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 | |
| 75 | async function maybeUnbuffer(command: string, args: string[]): Promise<{command: string; args: string[]}> { |
| 76 | if (!stdbufPath) { |
no test coverage detected