Skip to content

Commit

Permalink
Wordwrap X::Redeclaration::Outer message
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jul 5, 2020
1 parent 3ffed2f commit a7a1fe2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core.c/Exception.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -1124,9 +1124,7 @@ my class X::Redeclaration does X::Comp {
my class X::Redeclaration::Outer does X::Comp {
has $.symbol;
method message() {
"Lexical symbol '$.symbol' is already bound to an outer symbol;\n" ~
"the implicit outer binding must be rewritten as OUTER::<$.symbol>\n" ~
"before you can unambiguously declare a new '$.symbol' in this scope";
"Lexical symbol '$.symbol' is already bound to an outer symbol. The implicit outer binding must be rewritten as 'OUTER::<$.symbol>' before you can unambiguously declare a new '$.symbol' in this scope.".naive-word-wrapper
}
}

Expand Down

0 comments on commit a7a1fe2

Please sign in to comment.