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

Function isStorageError

packages/core/sdk/src/connections.test.ts:968–969  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

966 expect(failure.message).toContain("stranded");
967 // The original write failure is retained as the cause, not replaced.
968 const isStorageError = (u: unknown): u is StorageError =>
969 Predicate.isTagged("StorageError")(u);
970 expect(isStorageError(failure.cause)).toBe(true);
971 if (!isStorageError(failure.cause)) return;
972 expect(failure.cause.message).toBe("provider write refused");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected