(startupError: Error, cleanupFailure: unknown)
| 1995 | } |
| 1996 | |
| 1997 | function startupCleanupError(startupError: Error, cleanupFailure: unknown): Error { |
| 1998 | const cleanupError = asError(cleanupFailure, 'Shell process startup cleanup failed'); |
| 1999 | return new Error( |
| 2000 | `Shell process startup failed: ${safeFailureMessage(startupError)}; startup cleanup failed: ${safeFailureMessage(cleanupError)}`, |
| 2001 | { cause: new AggregateError([startupError, cleanupError]) }, |
| 2002 | ); |
| 2003 | } |
| 2004 | |
| 2005 | function compareActionableShellRuns(a: ShellRunRecord, b: ShellRunRecord): number { |
| 2006 | const rank = (record: ShellRunRecord) => (isActiveShellRunStatus(record.status) ? 1 : 0); |
no test coverage detected