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

Function isStorageError

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

Source from the content-addressed store, hash-verified

1232 expect(failure.message).toContain("stranded");
1233 // The original write failure is retained as the cause, not replaced.
1234 const isStorageError = (u: unknown): u is StorageError =>
1235 Predicate.isTagged("StorageError")(u);
1236 expect(isStorageError(failure.cause)).toBe(true);
1237 if (!isStorageError(failure.cause)) return;
1238 expect(failure.cause.message).toBe("provider write refused");

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected