Error logging
This commit is contained in:
@@ -100,7 +100,9 @@ const mapErrors = <A, E, R>(effect: Effect.Effect<A, E, R>) =>
|
|||||||
cause: new TRPCErrorCause(cause),
|
cause: new TRPCErrorCause(cause),
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
})
|
}),
|
||||||
|
|
||||||
|
Effect.tapError(Effect.logError),
|
||||||
)
|
)
|
||||||
|
|
||||||
export class TRPCErrorCause<E> extends Error {
|
export class TRPCErrorCause<E> extends Error {
|
||||||
|
|||||||
Reference in New Issue
Block a user