Skip to content

Commit

Permalink
Add info to CannotPrecomp exception
Browse files Browse the repository at this point in the history
The CannotPrecomp error message was LTA because it did not provide
actionable information to new users.  This revision clarifies that
users should remove the item that cannot be pre-compiled from a
Module.
  • Loading branch information
codesections committed Sep 1, 2021
1 parent 84c4729 commit a52f1f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.c/Exception.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ my class X::Pragma::NoArgs is Exception {
}
my class X::Pragma::CannotPrecomp is Exception {
has $.what = 'This compilation unit';
method message { "$.what may not be pre-compiled" }
method message { "$.what cannot be pre-compiled and thus cannot be used in a Module" }
}
my class X::Pragma::CannotWhat is Exception {
has $.what;
Expand Down

0 comments on commit a52f1f6

Please sign in to comment.