/** * Returns an effect that effectually "peeks" at the cause of the failure of * this effect. * * @tsplus static effect/core/io/Effect.Aspects tapErrorCause * @tsplus pipeable effect/core/io/Effect tapErrorCause */ export function tapErrorCause( f: (cause: Cause) => Effect ) { return (self: Effect): Effect => self.foldCauseEffect( (cause) => f(cause).zipRight(Effect.failCause(cause)), Effect.succeed ) }