Skip to content

Commit

Permalink
Wordwrap X::Undeclared message
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jul 5, 2020
1 parent 80aaede commit 4203186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.c/Exception.pm6
Expand Up @@ -1028,9 +1028,9 @@ my class X::Undeclared does X::Comp {
if +@.suggestions == 1 {
$message := "$message. Did you mean '@.suggestions[0]'?";
} elsif +@.suggestions > 1 {
$message := "$message. Did you mean any of these?\n { @.suggestions.join("\n ") }\n";
$message := "$message. Did you mean any of these: { @.suggestions.map( { "'$_'" } ).join(", ") }?";
}
$message;
$message.naive-word-wrapper
}
}

Expand Down

0 comments on commit 4203186

Please sign in to comment.