Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix hang when creating X::Multi::NoMatch exception message
Looks like another self-referencing array created by @A = 'foo', @A;
  • Loading branch information
niner committed Aug 16, 2015
1 parent 9c5d5da commit 18e485a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Exception.pm
Expand Up @@ -1938,7 +1938,7 @@ my class X::Multi::NoMatch is Exception {
@bits.unshift($invocant ~ ': ' ~ $first);
}
my $cap = '(' ~ @bits.join(", ") ~ ')';
@priors = "Earlier failures:\n", @priors, "\nFinal error:\n " if @priors;
@priors = flat "Earlier failures:\n", @priors, "\nFinal error:\n " if @priors;
@priors.join ~
join "\n ",
"Cannot call $.dispatcher.name()$cap; none of these signatures match:",
Expand Down

0 comments on commit 18e485a

Please sign in to comment.