Skip to content

Commit

Permalink
s/X::File::NotFound/X::NotFoundInRepository
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Apr 18, 2022
1 parent 2ad2a94 commit 504b151
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core.c/CompUnit/Repository.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ role CompUnit::Repository {
{
self.next-repo
?? self.next-repo.load($file)
!! X::File::NotFound.new(:$file).throw;
!! X::NotFoundInRepository.new(:$file).throw;
}

# Returns the CompUnit objects describing all of the compilation
Expand Down
2 changes: 1 addition & 1 deletion src/core.c/CompUnit/Repository/AbsolutePath.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class CompUnit::Repository::AbsolutePath does CompUnit::Repository {
$repo.load($file)
}
else {
X::File::NotFound.new(:$file).throw;
X::NotFoundInRepository.new(:$file).throw;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/core.c/CompUnit/Repository/FileSystem.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class CompUnit::Repository::FileSystem

return self.next-repo.load($file) if self.next-repo;

X::File::NotFound.new(:$file).throw;
X::NotFoundInRepository.new(:$file).throw;
}

method short-id() { 'file' }
Expand Down
2 changes: 1 addition & 1 deletion src/core.c/Exception.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ my class X::NQP::NotFound is Exception {
"Could not find nqp::$.op, did you forget 'use nqp;' ?"
}
}
my class X::File::NotFound is Exception {
my class X::NotFoundInRepository is Exception {
has $.file;
has @.repos;
method message() {
Expand Down

0 comments on commit 504b151

Please sign in to comment.