(err: Error)
| 55 | log('debug', `defaultExecutor PATH: ${process.env.PATH ?? ''}`); |
| 56 | |
| 57 | const logSpawnError = (err: Error): void => { |
| 58 | const errnoErr = err as NodeJS.ErrnoException & { spawnargs?: string[] }; |
| 59 | const errorDetails = { |
| 60 | code: errnoErr.code, |
| 61 | errno: errnoErr.errno, |
| 62 | syscall: errnoErr.syscall, |
| 63 | path: errnoErr.path, |
| 64 | spawnargs: errnoErr.spawnargs, |
| 65 | stack: errnoErr.stack, |
| 66 | }; |
| 67 | log('error', `Spawn error details: ${JSON.stringify(errorDetails, null, 2)}`); |
| 68 | }; |
| 69 | |
| 70 | const childProcess = spawn(executable, args, spawnOpts); |
| 71 |
no test coverage detected