Skip to content

Commit

Permalink
Wordwrap X::Dynamic::Postdeclaration message
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jul 5, 2020
1 parent a7a1fe2 commit cd8846a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core.c/Exception.pm6
Expand Up @@ -1131,9 +1131,7 @@ my class X::Redeclaration::Outer does X::Comp {
my class X::Dynamic::Postdeclaration does X::Comp {
has $.symbol;
method message() {
"Illegal post-declaration of dynamic variable '$.symbol';\n" ~
"earlier access must be written as CALLERS::<$.symbol>\n" ~
"if that's what you meant"
"Illegal post-declaration of dynamic variable '$.symbol'. Earlier access must be written as 'CALLERS::<$.symbol>' if that's what you meant.".naive-word-wrapper
}
}

Expand Down

0 comments on commit cd8846a

Please sign in to comment.