diff --git a/packages/server/src/trpc/TRPCContextCreator.ts b/packages/server/src/trpc/TRPCContextCreator.ts
index daa8c06..467a96e 100644
--- a/packages/server/src/trpc/TRPCContextCreator.ts
+++ b/packages/server/src/trpc/TRPCContextCreator.ts
@@ -58,7 +58,7 @@ const mapErrors = (effect: Effect.Effect) =>
Empty: cause => Effect.fail(
new TRPCError({
code: "INTERNAL_SERVER_ERROR",
- cause: new TRCPErrorCause(cause),
+ cause: new TRPCErrorCause(cause),
})
),
@@ -67,7 +67,7 @@ const mapErrors = (effect: Effect.Effect) =>
? cause.error
: new TRPCError({
code: "INTERNAL_SERVER_ERROR",
- cause: new TRCPErrorCause(cause),
+ cause: new TRPCErrorCause(cause),
})
),
@@ -76,35 +76,34 @@ const mapErrors = (effect: Effect.Effect) =>
? cause.defect
: new TRPCError({
code: "INTERNAL_SERVER_ERROR",
- cause: new TRCPErrorCause(cause),
+ cause: new TRPCErrorCause(cause),
})
),
Interrupt: cause => Effect.fail(
new TRPCError({
code: "INTERNAL_SERVER_ERROR",
- cause: new TRCPErrorCause(cause),
+ cause: new TRPCErrorCause(cause),
})
),
Sequential: cause => Effect.fail(
new TRPCError({
code: "INTERNAL_SERVER_ERROR",
- cause: new TRCPErrorCause(cause),
+ cause: new TRPCErrorCause(cause),
})
),
Parallel: cause => Effect.fail(
new TRPCError({
code: "INTERNAL_SERVER_ERROR",
- cause: new TRCPErrorCause(cause),
+ cause: new TRPCErrorCause(cause),
})
),
})
)
-
-export class TRCPErrorCause extends Error {
+export class TRPCErrorCause extends Error {
constructor(readonly cause: Cause.Cause) {
super()
}