(
readonly command: string,
readonly exitCode: number | null,
readonly signal: NodeJS.Signals | null,
readonly logTail: string,
)
| 14 | readonly _tag = "BootProcessExitError"; |
| 15 | |
| 16 | constructor( |
| 17 | readonly command: string, |
| 18 | readonly exitCode: number | null, |
| 19 | readonly signal: NodeJS.Signals | null, |
| 20 | readonly logTail: string, |
| 21 | ) { |
| 22 | const outcome = exitCode === null ? `signal ${signal ?? "unknown"}` : `code ${exitCode}`; |
| 23 | const diagnostic = logTail ? `\nLast boot log output:\n${logTail}` : ""; |
| 24 | super(`Boot process ${JSON.stringify(command)} exited with ${outcome}${diagnostic}`); |
| 25 | this.name = "BootProcessExitError"; |
| 26 | } |
| 27 | } |
| 28 | |
| 29 | /** A service process stayed alive but did not become HTTP-ready in time. */ |
nothing calls this directly
no outgoing calls
no test coverage detected