Skip to content

Commit

Permalink
Merge pull request #3259 from scala-steward-org/topic/show-repo-owner
Browse files Browse the repository at this point in the history
Show repo owner in exception message
  • Loading branch information
fthomas authored Jan 2, 2024
2 parents 7c33066 + efb9275 commit 46307ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final case class RepoOut(
archived: Boolean = false
) {
def parentOrRaise[F[_]](implicit F: ApplicativeThrow[F]): F[RepoOut] =
parent.fold(F.raiseError[RepoOut](new Throwable(s"repo $name has no parent")))(F.pure)
parent.fold(F.raiseError[RepoOut](new Throwable(s"repo ${repo.show} has no parent")))(F.pure)

def repo: Repo =
Repo(owner.login, name)
Expand Down

0 comments on commit 46307ca

Please sign in to comment.