tapError<X> method

ZIO<R, E, A> tapError<X>(
  1. ZIO<R, E, X> f(
    1. E _
    )
)

Like catchError, but the result of the resulting ZIO is discarded.

Implementation

ZIO<R, E, A> tapError<X>(
  ZIO<R, E, X> Function(E _) f,
) =>
    catchError((e) => f(e).zipRight(ZIO.fail(e)));