Skip to content

Commit

Permalink
Merge pull request #2277 from L7R7/master
Browse files Browse the repository at this point in the history
Log errors in CoursierAlg#getVersions
  • Loading branch information
fthomas authored Oct 13, 2021
2 parents aba4966 + 22c3842 commit 7a3bed1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ object CoursierAlg {
case Right(repository) =>
val module = toCoursierModule(dependency)
repository.versions(module, cacheNoTtl.fetch).run.flatMap {
case Left(message) => F.raiseError(new Throwable(message))
case Left(message) =>
logger.debug(message) >> F.raiseError(new Throwable(message))
case Right((versions, _)) => F.pure(versions.available.map(Version.apply).sorted)
}
}
Expand Down

0 comments on commit 7a3bed1

Please sign in to comment.