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

Function asError

packages/runtime/src/shell-run-manager.ts:2099–2101  ·  view source on GitHub ↗
(error: unknown, fallback: string)

Source from the content-addressed store, hash-verified

2097}
2098
2099function asError(error: unknown, fallback: string): Error {
2100 return error instanceof Error ? error : new Error(`${fallback}: ${String(error)}`);
2101}

Callers 9

writeStdinMethod · 0.70
stopBackgroundTaskMethod · 0.70
queuePersistMethod · 0.70
finalizeLiveMethod · 0.70
startTerminationMethod · 0.70
cleanupStartupNativeMethod · 0.70
startupPersistenceErrorFunction · 0.70
startupCleanupErrorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected