Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bring back listing all repos in "Could not find" error messages
  • Loading branch information
niner committed Oct 30, 2015
1 parent bcae4c4 commit 45f457f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/core/CompUnit/Repository.pm
Expand Up @@ -21,6 +21,10 @@ role CompUnit::Repository {
method precomp-repository()
returns CompUnit::PrecompilationRepository
{ CompUnit::PrecompilationRepository::None }

method repo-chain() {
($.next-repo and $.next-repo.defined) ?? (self, |$.next-repo.repo-chain()) !! (self, );
}
}

# vim: ft=perl6 expandtab sw=4
2 changes: 1 addition & 1 deletion src/core/CompUnitRepo/Locally.pm
Expand Up @@ -46,7 +46,7 @@ role CompUnitRepo::Locally {
return @candidates[0];
}
return self.next-repo.need($spec, GLOBALish, :$precomp, :$line) if self.next-repo;
nqp::die("Could not find $spec in $.Str");
nqp::die("Could not find $spec in:\n" ~ $*REPO.repo-chain.map(*.Str).join("\n").indent(4));
}

method loaded() returns Iterable {
Expand Down

0 comments on commit 45f457f

Please sign in to comment.