Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use path-spec instead of path for module-not-found errors #2660

Merged
merged 1 commit into from Jan 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/CompUnit/Repository.pm6
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/core/CompUnit/Repository/AbsolutePath.pm6
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/Exception.pm6
Expand Up @@ -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 ~~ / $<name>=.+ '::from' $ /
?? "\n\nIf you meant to use the :from adverb, use"
~ " a single colon for it: $<name>:from<...>\n"
Expand Down