Skip to content

Commit

Permalink
Wordwrap X::Attribute::Regex message
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jul 5, 2020
1 parent 4203186 commit f70a3cc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core.c/Exception.pm6
Expand Up @@ -1045,8 +1045,7 @@ my class X::Attribute::Undeclared is X::Undeclared {

my class X::Attribute::Regex is X::Undeclared {
method message() {
"Attribute $.symbol not available inside of a regex, since regexes are methods on Cursor.\n" ~
"Consider storing the attribute in a lexical, and using that in the regex.";
"Attribute '$.symbol' not available inside of a regex, since regexes are methods on the Cursor class. Consider storing the attribute in a lexical, and using that in the regex.".naive-word-wrapper
}
}

Expand Down

0 comments on commit f70a3cc

Please sign in to comment.