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

Function userStoreErrorFromFailure

apps/cloud/src/auth/errors.ts:99–100  ·  view source on GitHub ↗
(operation: string, failure: unknown)

Source from the content-addressed store, hash-verified

97/** Build the public `UserStoreError` for a store-adapter failure, naming the
98 * operation the call site already knows and classifying the driver cause. */
99export const userStoreErrorFromFailure = (operation: string, failure: unknown): UserStoreError =>
100 new UserStoreError({ operation, reason: userStoreReasonFromCause(failure) });
101
102export class WorkOSError extends Schema.TaggedErrorClass<WorkOSError>()(
103 "WorkOSError",

Callers 1

makeServiceFunction · 0.90

Calls 1

userStoreReasonFromCauseFunction · 0.85

Tested by

no test coverage detected