Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Add test for RT #113680
- Loading branch information
Showing
1 changed file
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
afc4d1eThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A nicer approach (but more work) would be to create a new exception type, for example
X::NoSuchModule, and throw it in rakudo, and then test for that exception type.If you want to do it that way, and want guidance, please ask me on the IRC channel.
afc4d1eThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I didn't manage to use a typed exception for this problem. It's been a while since I tried, but IIRC my guess was that I had no access to typed exceptions in class Perl6::ModuleLoader.