Error logging

This commit is contained in:
Julien Valverdé
2024-07-15 02:27:44 +02:00
parent 3ae5f31f96
commit d2734fa71b

View File

@@ -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 {