MCPcopy Create free account
hub / github.com/apache/maka / startupCleanupError

Function startupCleanupError

packages/runtime/src/shell-run-manager.ts:1997–2003  ·  view source on GitHub ↗
(startupError: Error, cleanupFailure: unknown)

Source from the content-addressed store, hash-verified

1995}
1996
1997function 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
2005function compareActionableShellRuns(a: ShellRunRecord, b: ShellRunRecord): number {
2006 const rank = (record: ShellRunRecord) => (isActiveShellRunStatus(record.status) ? 1 : 0);

Callers 1

Calls 2

safeFailureMessageFunction · 0.85
asErrorFunction · 0.70

Tested by

no test coverage detected