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

Function isStorageError

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected