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

Function userStoreErrorFromFailure

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

Source from the content-addressed store, hash-verified

118/** Build the public `UserStoreError` for a store-adapter failure, naming the
119 * operation the call site already knows and classifying the driver cause. */
120export const userStoreErrorFromFailure = (operation: string, failure: unknown): UserStoreError =>
121 new UserStoreError({ operation, reason: userStoreReasonFromCause(failure) });
122
123export class WorkOSError extends Schema.TaggedErrorClass<WorkOSError>()(
124 "WorkOSError",

Callers 1

makeServiceFunction · 0.90

Calls 1

userStoreReasonFromCauseFunction · 0.85

Tested by

no test coverage detected