MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / storageFailureFromUnknown

Function storageFailureFromUnknown

packages/core/sdk/src/executor.ts:488–489  ·  view source on GitHub ↗
(message: string, cause: unknown)

Source from the content-addressed store, hash-verified

486};
487
488const storageFailureFromUnknown = (message: string, cause: unknown): StorageFailure =>
489 isStorageFailure(cause) ? cause : new StorageError({ message, cause });
490
491const pluginStorageFailure = (pluginId: string, hook: string, cause: unknown): StorageFailure =>
492 storageFailureFromUnknown(`${hook} failed for plugin ${pluginId}`, cause);

Callers 7

pluginStorageFailureFunction · 0.85
createExecutorFunction · 0.85
produceConnectionToolsFunction · 0.85
connectionsCreateFunction · 0.85
mintOAuthConnectionFunction · 0.85
toolSchemaFunction · 0.85
policiesCreateFunction · 0.85

Calls 1

isStorageFailureFunction · 0.90

Tested by

no test coverage detected