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

Function startupPersistenceError

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

Source from the content-addressed store, hash-verified

1984}
1985
1986function startupPersistenceError(startupError: Error, persistenceFailure: unknown): Error {
1987 const persistenceError = asError(
1988 persistenceFailure,
1989 'ShellRun startup terminal persistence failed',
1990 );
1991 return new Error(
1992 `Shell process startup failed: ${safeFailureMessage(startupError)}; failed to persist terminal ShellRun after retry: ${safeFailureMessage(persistenceError)}`,
1993 { cause: new AggregateError([startupError, persistenceError]) },
1994 );
1995}
1996
1997function startupCleanupError(startupError: Error, cleanupFailure: unknown): Error {
1998 const cleanupError = asError(cleanupFailure, 'Shell process startup cleanup failed');

Callers 1

Calls 2

safeFailureMessageFunction · 0.85
asErrorFunction · 0.70

Tested by

no test coverage detected