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

Function isStorageFailure

packages/core/sdk/src/fuma-runtime.ts:69–70  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

67};
68
69export const isStorageFailure = (error: unknown): error is StorageFailure =>
70 Predicate.isTagged(error, "StorageError") || Predicate.isTagged(error, "UniqueViolationError");
71
72export const fumaFailureFromCause = (label: string, cause: unknown): StorageFailure => {
73 if (isStorageFailure(cause)) return cause;

Callers 3

foldPluginFailureFunction · 0.90
fumaFailureFromCauseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected