Skip to content

Commit

Permalink
Merge pull request #2978 from tgodzik/show-error
Browse files Browse the repository at this point in the history
improvement: Show error instead of unimplemented on wrong repos
  • Loading branch information
adpi2 committed May 6, 2024
2 parents 82430eb + 9d385a0 commit 3a8a7b4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ abstract class PlatformResolve {
val valueOpt = db.get(Keys.defaultRepositories).fold(e => throw new Exception(e), identity)
valueOpt.map { inputs =>
RepositoryParser.repositories(inputs).either match {
case Left(errors) => ???
case Left(errors) =>
val errorMessage = errors.mkString("Malformed repositories:\n", "\n", "")
throw new Exception(errorMessage)
case Right(repos) => repos
}
}
Expand Down

0 comments on commit 3a8a7b4

Please sign in to comment.