( method: string, err: NodeJS.ErrnoException, command: ChildProcess.Command, )
| 77 | } |
| 78 | |
| 79 | const toPlatformError = ( |
| 80 | method: string, |
| 81 | err: NodeJS.ErrnoException, |
| 82 | command: ChildProcess.Command, |
| 83 | ): PlatformError.PlatformError => { |
| 84 | const cmd = flatten(command) |
| 85 | .commands.map((x) => `${x.command} ${x.args.join(" ")}`) |
| 86 | .join(" | ") |
| 87 | return PlatformError.systemError({ |
| 88 | _tag: toTag(err), |
| 89 | module: "ChildProcess", |
| 90 | method, |
| 91 | pathOrDescriptor: cmd, |
| 92 | syscall: err.syscall, |
| 93 | cause: err, |
| 94 | }) |
| 95 | } |
| 96 | |
| 97 | type ExitSignal = Deferred.Deferred<readonly [code: number | null, signal: NodeJS.Signals | null]> |
| 98 |
no test coverage detected