Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
arrays don't interpolate without brackets
  • Loading branch information
TimToady committed Dec 25, 2015
1 parent 9cab516 commit e360bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Exception.pm
Expand Up @@ -1094,12 +1094,12 @@ my class X::Adverb is Exception {
my $text = '';
if @!unexpected.elems -> $elems {
$text = $elems > 1
?? "$elems unexpected adverbs (@.unexpected)"
?? "$elems unexpected adverbs (@.unexpected[])"
!! "Unexpected adverb '@!unexpected[0]'"
}
if @!nogo {
$text ~= $text ?? " and u" !! "U";
$text ~= "nsupported combination of adverbs (@.nogo)";
$text ~= "nsupported combination of adverbs (@.nogo[])";
}
$text ~ " passed to $!what on $!source";
}
Expand Down

0 comments on commit e360bd2

Please sign in to comment.