diff --git a/src/core/CompUnit/Repository.pm6 b/src/core/CompUnit/Repository.pm6 index db063434a8a..a5b907fe80c 100644 --- a/src/core/CompUnit/Repository.pm6 +++ b/src/core/CompUnit/Repository.pm6 @@ -28,7 +28,7 @@ role CompUnit::Repository { self.next-repo ?? self.next-repo.load($file) !! nqp::die("Could not find $file in:\n" - ~ $*REPO.repo-chain.map(*.Str).join("\n").indent(4)); + ~ $*REPO.repo-chain.map(*.path-spec).join("\n").indent(4)); } # Returns the CompUnit objects describing all of the compilation diff --git a/src/core/CompUnit/Repository/AbsolutePath.pm6 b/src/core/CompUnit/Repository/AbsolutePath.pm6 index 002e87e9867..85573a0e0a8 100644 --- a/src/core/CompUnit/Repository/AbsolutePath.pm6 +++ b/src/core/CompUnit/Repository/AbsolutePath.pm6 @@ -32,7 +32,7 @@ class CompUnit::Repository::AbsolutePath does CompUnit::Repository { } return self.next-repo.load($file) if self.next-repo; - die("Could not find $file in:\n" ~ $*REPO.repo-chain.map(*.Str).join("\n").indent(4)); + die("Could not find $file in:\n" ~ $*REPO.repo-chain.map(*.path-spec).join("\n").indent(4)); } method loaded(--> Iterable:D) { diff --git a/src/core/Exception.pm6 b/src/core/Exception.pm6 index 83809b916bc..a2ddde44b3d 100644 --- a/src/core/Exception.pm6 +++ b/src/core/Exception.pm6 @@ -3029,7 +3029,7 @@ my class X::CompUnit::UnsatisfiedDependency is Exception { is-core($name) ?? "{$name} is a builtin type, not an external module" !! "Could not find $.specification at line $line in:\n" - ~ $*REPO.repo-chain.map(*.Str).join("\n").indent(4) + ~ $*REPO.repo-chain.map(*.path-spec).join("\n").indent(4) ~ ($.specification ~~ / $=.+ '::from' $ / ?? "\n\nIf you meant to use the :from adverb, use" ~ " a single colon for it: $:from<...>\n"