Skip to content

Commit

Permalink
[Cool-str.pm] improved error reporting
Browse files Browse the repository at this point in the history
There was a () missing on a .perl in an interpolation. This can
never have worked properly. Does now.
  • Loading branch information
Carl Masak committed Nov 13, 2010
1 parent c548b87 commit 015d77b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Cool-str.pm
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ augment class Cool {


my %c; my %c;
for (@changes) -> $p { for (@changes) -> $p {
die "$p.perl is not a Pair" unless $p ~~ Pair; die "$p.perl() is not a Pair" unless $p ~~ Pair;
my @from = expand $p.key; my @from = expand $p.key;
my @to = expand $p.value; my @to = expand $p.value;
if @to { if @to {
Expand Down

0 comments on commit 015d77b

Please sign in to comment.