mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Dependency updates
This commit is contained in:
@ -163,7 +163,7 @@ final class PeriodicSchedulerImpl[F[_]: Async](
|
||||
private def logThrow[A](msg: => String)(fa: F[A]): F[A] =
|
||||
fa.attempt.flatMap {
|
||||
case r @ Right(_) => (r: Either[Throwable, A]).pure[F]
|
||||
case l @ Left(ex) => logger.error(ex)(msg).map(_ => (l: Either[Throwable, A]))
|
||||
case l @ Left(ex) => logger.error(ex)(msg).map(_ => l: Either[Throwable, A])
|
||||
}.rethrow
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user